Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 6,800 for errors (0.14 sec)

  1. src/cmd/compile/internal/types2/errors.go

    // An errorDesc describes part of a type-checking error.
    type errorDesc struct {
    	pos syntax.Pos
    	msg string
    }
    
    // An error_ represents a type-checking error.
    // A new error_ is created with Checker.newError.
    // To report an error_, call error_.report.
    type error_ struct {
    	check *Checker
    	desc  []errorDesc
    	code  Code
    	soft  bool // TODO(gri) eventually determine this from an error code
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/validation/field/errors.go

    	utilerrors "k8s.io/apimachinery/pkg/util/errors"
    	"k8s.io/apimachinery/pkg/util/sets"
    )
    
    // Error is an implementation of the 'error' interface, which represents a
    // field-level validation error.
    type Error struct {
    	Type     ErrorType
    	Field    string
    	BadValue interface{}
    	Detail   string
    }
    
    var _ error = &Error{}
    
    // Error implements the error interface.
    func (v *Error) Error() string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  3. pkg/kubelet/checkpointmanager/errors/errors.go

    limitations under the License.
    */
    
    package errors
    
    import "fmt"
    
    // ErrCorruptCheckpoint error is reported when checksum does not match
    var ErrCorruptCheckpoint = fmt.Errorf("checkpoint is corrupted")
    
    // ErrCheckpointNotFound is reported when checkpoint is not found for a given key
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 16 05:30:20 UTC 2018
    - 886 bytes
    - Viewed (0)
  4. src/errors/errors.go

    // Unwrap method to return an []error containing a nil error value.
    //
    // An easy way to create wrapped errors is to call [fmt.Errorf] and apply
    // the %w verb to the error argument:
    //
    //	wrapsErr := fmt.Errorf("... %w ...", ..., err, ...)
    //
    // Successive unwrapping of an error creates a tree. The [Is] and [As]
    // functions inspect an error's tree by examining first the error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 19:45:41 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  5. 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)
  6. staging/src/k8s.io/apiserver/pkg/storage/errors.go

    	return false
    }
    
    // InvalidError is generated when an error caused by invalid API object occurs
    // in the storage package.
    type InvalidError struct {
    	Errs field.ErrorList
    }
    
    func (e InvalidError) Error() string {
    	return e.Errs.ToAggregate().Error()
    }
    
    // IsInvalidError returns true if and only if err is an InvalidError.
    func IsInvalidError(err error) bool {
    	_, ok := err.(InvalidError)
    	return ok
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 08 15:39:10 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  7. src/go/types/errors.go

    // An errorDesc describes part of a type-checking error.
    type errorDesc struct {
    	posn positioner
    	msg  string
    }
    
    // An error_ represents a type-checking error.
    // A new error_ is created with Checker.newError.
    // To report an error_, call error_.report.
    type error_ struct {
    	check *Checker
    	desc  []errorDesc
    	code  Code
    	soft  bool // TODO(gri) eventually determine this from an error code
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. 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)
  9. staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go

    // IsAlreadyExists determines if the err is an error which indicates that a specified resource already exists.
    // It supports wrapped errors and returns false when the error is nil.
    func IsAlreadyExists(err error) bool {
    	return ReasonForError(err) == metav1.StatusReasonAlreadyExists
    }
    
    // IsConflict determines if the err is an error which indicates the provided update conflicts.
    // It supports wrapped errors and returns false when the error is nil.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 21 03:41:32 UTC 2022
    - 30.5K bytes
    - Viewed (0)
  10. src/fmt/errors.go

    		}
    		var errs []error
    		for i, argNum := range p.wrappedErrs {
    			if i > 0 && p.wrappedErrs[i-1] == argNum {
    				continue
    			}
    			if e, ok := a[argNum].(error); ok {
    				errs = append(errs, e)
    			}
    		}
    		err = &wrapErrors{s, errs}
    	}
    	p.free()
    	return err
    }
    
    type wrapError struct {
    	msg string
    	err error
    }
    
    func (e *wrapError) Error() string {
    	return e.msg
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top