- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 2,091 for ErrorIs (0.12 sec)
-
src/cmd/compile/internal/syntax/error_test.go
// license that can be found in the LICENSE file. // This file implements a regression test harness for syntax errors. // The files in the testdata directory are parsed and the reported // errors are compared against the errors declared in those files. // // Errors are declared in place in the form of "error comments", // just before (or on the same line as) the offending token. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 02:13:02 UTC 2022 - 4.8K bytes - Viewed (0) -
src/errors/wrap.go
// // The tree consists of err itself, followed by the errors obtained by repeatedly // calling its Unwrap() error or Unwrap() []error method. When err wraps multiple // errors, As examines err followed by a depth-first traversal of its children. // // An error matches target if the error's concrete value is assignable to the value // pointed to by target, or if the error has a method As(any) bool such that
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:04 UTC 2024 - 4.3K bytes - Viewed (0) -
src/cmd/go/internal/modindex/scan.go
// representation. A nil error is converted to an empty string, and all other // errors are converted to a JSON-marshaled parseError struct, with ErrorList // set for errors of type scanner.ErrorList, and ErrorString set to the error's // string representation for all other errors. func parseErrorToString(err error) string { if err == nil { return "" } var p parseError
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 8.5K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/ExecutionError.java
* ExecutionException}, the error's {@linkplain #getCause() cause} comes from a failed task, * possibly run in another thread. That cause should itself be an {@code Error}; if not, use {@code * ExecutionException} or {@link UncheckedExecutionException}. This allows the client code to * continue to distinguish between exceptions and errors, even when they come from other threads. * * @author Chris Povirk
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Mar 07 17:52:19 UTC 2024 - 3.8K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ExecutionError.java
* ExecutionException}, the error's {@linkplain #getCause() cause} comes from a failed task, * possibly run in another thread. That cause should itself be an {@code Error}; if not, use {@code * ExecutionException} or {@link UncheckedExecutionException}. This allows the client code to * continue to distinguish between exceptions and errors, even when they come from other threads. * * @author Chris Povirk
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Mar 07 17:52:19 UTC 2024 - 3.8K bytes - Viewed (0) -
src/syscall/syscall_plan9.go
package syscall import ( "errors" "internal/oserror" "runtime" "unsafe" ) const ImplementsGetwd = true const bitSize16 = 2 // ErrorString implements Error's String method by returning itself. // // ErrorString values can be tested against error values using [errors.Is]. // For example: // // _, _, err := syscall.Syscall(...) // if errors.Is(err, fs.ErrNotExist) ... type ErrorString string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 9.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/firsthit_restmapper.go
// by returning the item, and collapses all NoMatchErrors to a single one (since they should all be the same) func collapseAggregateErrors(errors []error) error { if len(errors) == 0 { return nil } if len(errors) == 1 { return errors[0] } allNoMatchErrors := true for _, err := range errors { allNoMatchErrors = allNoMatchErrors && IsNoMatchError(err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 05 23:44:02 UTC 2021 - 2.8K bytes - Viewed (0) -
src/cmd/gofmt/testdata/import.input
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 28 23:33:26 UTC 2019 - 2.1K bytes - Viewed (0) -
pkg/registry/networking/servicecidr/strategy_test.go
errors := Strategy.Validate(context.TODO(), obj) if len(errors) != 2 { t.Errorf("Expected 2 validation errors for invalid object, got %d", len(errors)) } oldObj := newServiceCIDR() newObj := oldObj.DeepCopy() newObj.Spec.CIDRs = []string{"bad cidr"} errors = Strategy.ValidateUpdate(context.TODO(), newObj, oldObj) if len(errors) != 2 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 04 15:09:29 UTC 2024 - 2.8K bytes - Viewed (0) -
src/errors/join_test.go
package errors_test import ( "errors" "reflect" "testing" ) func TestJoinReturnsNil(t *testing.T) { if err := errors.Join(); err != nil { t.Errorf("errors.Join() = %v, want nil", err) } if err := errors.Join(nil); err != nil { t.Errorf("errors.Join(nil) = %v, want nil", err) } if err := errors.Join(nil, nil); err != nil { t.Errorf("errors.Join(nil, nil) = %v, want nil", err) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 17 21:48:12 UTC 2022 - 1.7K bytes - Viewed (0)