Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 182 for error_1 (0.09 sec)

  1. src/fmt/errors.go

    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,
    // the returned error will implement an Unwrap method returning the operand.
    // If there is more than one %w verb, the returned error will implement an
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/admission/errors.go

    package admission
    
    import (
    	"errors"
    	"fmt"
    
    	"k8s.io/kubernetes/pkg/kubelet/lifecycle"
    )
    
    const (
    	ErrorReasonUnexpected = "UnexpectedAdmissionError"
    )
    
    type Error interface {
    	Error() string
    	Type() string
    }
    
    type unexpectedAdmissionError struct{ Err error }
    
    var _ Error = (*unexpectedAdmissionError)(nil)
    
    func (e *unexpectedAdmissionError) Error() string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 08 21:15:37 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  3. pkg/controller/util/endpointslice/errors.go

    */
    
    package endpointslice
    
    // StaleInformerCache errors indicate that the informer cache includes out of
    // date resources.
    type StaleInformerCache struct {
    	msg string
    }
    
    // NewStaleInformerCache return StaleInformerCache with error mes
    func NewStaleInformerCache(msg string) *StaleInformerCache {
    	return &StaleInformerCache{msg}
    }
    
    func (e *StaleInformerCache) Error() string { return e.msg }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 14 07:15:35 UTC 2021
    - 1K bytes
    - Viewed (0)
  4. internal/hash/errors.go

    type ChecksumMismatch struct {
    	Want string
    	Got  string
    }
    
    func (e ChecksumMismatch) Error() string {
    	return "Bad checksum: Want " + e.Want + " does not match calculated " + e.Got
    }
    
    // IsChecksumMismatch matches if 'err' is hash.ChecksumMismatch
    func IsChecksumMismatch(err error) bool {
    	var herr ChecksumMismatch
    	return errors.As(err, &herr)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 15 21:08:54 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  5. internal/kms/errors.go

    	}
    )
    
    // Error is a KMS error that can be translated into an S3 API error.
    //
    // It does not implement the standard error Unwrap interface for
    // better error log messages.
    type Error struct {
    	Code    int    // The HTTP status code returned to the client
    	APICode string // The API error code identifying the error
    	Err     string // The error message returned to the client
    	Cause   error  // Optional, lower level error cause.
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. internal/event/errors.go

    }
    
    // ErrInvalidFilterName - invalid filter name error.
    type ErrInvalidFilterName struct {
    	FilterName string
    }
    
    func (err ErrInvalidFilterName) Error() string {
    	return fmt.Sprintf("invalid filter name '%v'", err.FilterName)
    }
    
    // ErrFilterNamePrefix - more than one prefix usage error.
    type ErrFilterNamePrefix struct{}
    
    func (err ErrFilterNamePrefix) Error() string {
    	return "more than one prefix in filter rule"
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 4.1K bytes
    - Viewed (0)
  7. internal/s3select/json/errors.go

    	message    string
    	statusCode int
    	cause      error
    }
    
    func (err *s3Error) Cause() error {
    	return err.cause
    }
    
    func (err *s3Error) ErrorCode() string {
    	return err.code
    }
    
    func (err *s3Error) ErrorMessage() string {
    	return err.message
    }
    
    func (err *s3Error) HTTPStatusCode() int {
    	return err.statusCode
    }
    
    func (err *s3Error) Error() string {
    	return err.message
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/errors.go

    import (
    	"fmt"
    )
    
    type LookupPatchMetaError struct {
    	Path string
    	Err  error
    }
    
    func (e LookupPatchMetaError) Error() string {
    	return fmt.Sprintf("LookupPatchMetaError(%s): %v", e.Path, e.Err)
    }
    
    type FieldNotFoundError struct {
    	Path  string
    	Field string
    }
    
    func (e FieldNotFoundError) Error() string {
    	return fmt.Sprintf("unable to find api field %q in %s", e.Field, e.Path)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 20 22:35:14 UTC 2017
    - 1.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/errors.go

    limitations under the License.
    */
    
    package cel
    
    // Error is an implementation of the 'error' interface, which represents a
    // XValidation error.
    type Error struct {
    	Type   ErrorType
    	Detail string
    }
    
    var _ error = &Error{}
    
    // Error implements the error interface.
    func (v *Error) Error() string {
    	return v.Detail
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go

    // It supports wrapped errors and returns StatusReasonUnknown when
    // the error is nil or doesn't have a status.
    func ReasonForError(err error) metav1.StatusReason {
    	if status, ok := err.(APIStatus); ok || errors.As(err, &status) {
    		return status.Status().Reason
    	}
    	return metav1.StatusReasonUnknown
    }
    
    func reasonAndCodeForError(err error) (metav1.StatusReason, int32) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 21 03:41:32 UTC 2022
    - 30.5K bytes
    - Viewed (0)
Back to top