Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 168 for errorCh (0.08 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/errors.go

    func NewForbidden(a Attributes, internalError error) error {
    	// do not double wrap an error of same type
    	if apierrors.IsForbidden(internalError) {
    		return internalError
    	}
    	name, resource, err := extractResourceName(a)
    	if err != nil {
    		return apierrors.NewInternalError(utilerrors.NewAggregate([]error{internalError, err}))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 26 19:40:51 UTC 2017
    - 2.3K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. staging/src/k8s.io/apimachinery/pkg/util/mergepatch/errors.go

    */
    
    package mergepatch
    
    import (
    	"errors"
    	"fmt"
    	"reflect"
    )
    
    var (
    	ErrBadJSONDoc                           = errors.New("invalid JSON document")
    	ErrNoListOfLists                        = errors.New("lists of lists are not supported")
    	ErrBadPatchFormatForPrimitiveList       = errors.New("invalid patch format of primitive list")
    	ErrBadPatchFormatForRetainKeys          = errors.New("invalid patch format of retainKeys")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 13:12:11 UTC 2017
    - 3.1K bytes
    - Viewed (0)
  10. 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)
Back to top