- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 3,877 for ErrorIs (0.17 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/errors/errors.go
limitations under the License. */ package errors import ( "errors" "fmt" "k8s.io/apimachinery/pkg/util/sets" ) // MessageCountMap contains occurrence for each error message. type MessageCountMap map[string]int // Aggregate represents an object that contains multiple errors, but does not // necessarily have singular semantic meaning. // The aggregate can be used with `errors.Is()` to check for the occurrence of
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 29 09:44:02 UTC 2023 - 6.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/errors.go
limitations under the License. */ package storage import ( "errors" "fmt" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/validation/field" ) var ErrResourceVersionSetOnCreate = errors.New("resourceVersion should not be set on objects to be created") const ( ErrCodeKeyNotFound int = iota + 1
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 08 15:39:10 UTC 2023 - 5.9K bytes - Viewed (0) -
src/go/types/errors.go
func (err *error_) report() { if err.empty() { panic("no error") } // Cheap trick: Don't report errors with messages containing // "invalid operand" or "invalid type" as those tend to be // follow-on errors which don't add useful information. Only // exclude them if these strings are not at the beginning, // and only if we have at least one error already reported.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 8.5K bytes - Viewed (0) -
src/internal/types/testdata/check/errors.go
} // Don't report spurious errors as a consequence of earlier errors. // Add more tests as needed. func _() { if err := foo /* ERROR "undefined" */ (); err != nil /* "no error here" */ {} } // Use unqualified names for package-local objects. type T struct{} var _ int = T /* ERROR "value of type T" */ {} // use T in error message rather than errors.T // Don't report errors containing "invalid type" (issue #24182).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 10 12:59:20 UTC 2023 - 2.2K bytes - Viewed (0) -
src/go/scanner/errors.go
} return e.Msg } // ErrorList is a list of *Errors. // The zero value for an ErrorList is an empty ErrorList ready to use. type ErrorList []*Error // Add adds an [Error] with given position and error message to an [ErrorList]. func (p *ErrorList) Add(pos token.Position, msg string) { *p = append(*p, &Error{pos, msg}) } // Reset resets an [ErrorList] to no errors. func (p *ErrorList) Reset() { *p = (*p)[0:0] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 3K bytes - Viewed (0) -
internal/grid/errors.go
package grid import ( "errors" "fmt" ) var ( // ErrUnknownHandler is returned when an unknown handler is requested. ErrUnknownHandler = errors.New("unknown mux handler") // ErrHandlerAlreadyExists is returned when a handler is already registered. ErrHandlerAlreadyExists = errors.New("mux handler already exists")
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Nov 21 01:09:35 UTC 2023 - 1.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/etcd3/errors.go
limitations under the License. */ package etcd3 import ( "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apiserver/pkg/storage" etcdrpc "go.etcd.io/etcd/api/v3/v3rpc/rpctypes" utilruntime "k8s.io/apimachinery/pkg/util/runtime" ) func interpretWatchError(err error) error { switch { case err == etcdrpc.ErrCompacted: return errors.NewResourceExpired("The resourceVersion for the provided watch is too old.") } return err
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 11 15:59:41 UTC 2022 - 2.5K bytes - Viewed (0) -
src/fmt/errors.go
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package fmt import ( "errors" "slices" ) // Errorf formats according to a format specifier and returns the string as a // value that satisfies error. // // If the format specifier includes a %w verb with an error operand,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 1.7K bytes - Viewed (0) -
src/cmd/go/internal/script/errors.go
// license that can be found in the LICENSE file. package script import ( "errors" "fmt" ) // ErrUnexpectedSuccess indicates that a script command that was expected to // fail (as indicated by a "!" prefix) instead completed successfully. var ErrUnexpectedSuccess = errors.New("unexpected success") // A CommandError describes an error resulting from attempting to execute a // specific command.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:18:10 UTC 2022 - 1.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/errors.go
func (*AmbiguousKindError) Is(target error) bool { _, ok := target.(*AmbiguousKindError) return ok } func IsAmbiguousError(err error) bool { if err == nil { return false } return errors.Is(err, &AmbiguousResourceError{}) || errors.Is(err, &AmbiguousKindError{}) } // NoResourceMatchError is returned if the RESTMapper can't find any match for a resource type NoResourceMatchError struct { PartialResource schema.GroupVersionResource
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 11 22:50:51 UTC 2022 - 4.2K bytes - Viewed (0)