Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of about 10,000 for perror (0.28 sec)

  1. 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)
  2. 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)
  3. 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)
  4. staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go

    }
    
    // HasStatusCause returns true if the provided error has a details cause
    // with the provided type name.
    // It supports wrapped errors and returns false when the error is nil.
    func HasStatusCause(err error, name metav1.CauseType) bool {
    	_, ok := StatusCause(err, name)
    	return ok
    }
    
    // StatusCause returns the named cause from the provided error if it exists and
    // the error unwraps to the type APIStatus. Otherwise it returns false.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 21 03:41:32 UTC 2022
    - 30.5K bytes
    - Viewed (0)
  5. 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)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/negotiation/errors.go

    type errNotAcceptable struct {
    	accepted []string
    }
    
    // NewNotAcceptableError returns an error of NotAcceptable which contains specified string
    func NewNotAcceptableError(accepted []string) error {
    	return errNotAcceptable{accepted}
    }
    
    func (e errNotAcceptable) Error() string {
    	return fmt.Sprintf("only the following media types are accepted: %v", strings.Join(e.accepted, ", "))
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 18:03:59 UTC 2019
    - 3.1K bytes
    - Viewed (0)
  7. 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)
  8. src/go/doc/testdata/error1.go

    package error1
    
    type I0 interface {
    	// When embedded, the predeclared error interface
    	// must remain visible in interface types.
    	error
    }
    
    type T0 struct {
    	ExportedField interface {
    		// error should be visible
    		error
    	}
    }
    
    type S0 struct {
    	// In struct types, an embedded error must only be visible
    	// if AllDecls is set.
    	error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 498 bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/mergepatch/errors.go

    	}
    	return fmt.Errorf("expected a %s, but received a %s", expectedKindString, actualKindString)
    }
    
    func ErrBadPatchType(t interface{}, m map[string]interface{}) error {
    	return fmt.Errorf("unknown patch type: %s in map: %v", t, m)
    }
    
    // IsPreconditionFailed returns true if the provided error indicates
    // a precondition failed.
    func IsPreconditionFailed(err error) bool {
    	_, ok := err.(ErrPreconditionFailed)
    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. src/errors/errors.go

    // Package errors implements functions to manipulate errors.
    //
    // The [New] function creates errors whose only content is a text message.
    //
    // An error e wraps another error if e's type has one of the methods
    //
    //	Unwrap() error
    //	Unwrap() []error
    //
    // If e.Unwrap() returns a non-nil error w or a slice containing w,
    // then we say that e wraps w. A nil error returned from e.Unwrap()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 19:45:41 UTC 2023
    - 2.9K bytes
    - Viewed (0)
Back to top