Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 182 for error_1 (0.09 sec)

  1. 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)
  2. src/encoding/gob/dec_helpers.go

    		}
    		u := state.decodeUint()
    		n := int(u)
    		if n < 0 || uint64(n) != u || n > state.b.Len() {
    			errorf("length of string exceeds input size (%d bytes)", u)
    		}
    		if n > state.b.Len() {
    			errorf("string data too long for buffer: %d", n)
    		}
    		// Read the data.
    		data := state.b.Bytes()
    		if len(data) < n {
    			errorf("invalid string length %d: exceeds input size %d", n, len(data))
    		}
    		slice[i] = string(data[:n])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 24 19:28:46 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/build_issue6480.txt

    cmp errors.test$GOEXE errors2.test # // errors2.test has no exeSuffix because -o above doesn't have it
    
    # Check errors.test mtime is updated
    exec $GOBIN/now
    cp stdout start_time.txt
    go test -x -c -test.bench=XXX errors
    ! stderr '[\\/]link|gccgo' # make sure up-to-date test binary is not relinked
    exec $GOBIN/mtime errors.test$GOEXE
    cp stdout errors1_mod_time.txt
    exec $GOBIN/before start_time.txt errors1_mod_time.txt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  4. src/encoding/gob/decode.go

    	b, err := state.b.ReadByte()
    	if err != nil {
    		error_(err)
    	}
    	if b <= 0x7f {
    		return uint64(b)
    	}
    	n := -int(int8(b))
    	if n > uint64Size {
    		error_(errBadUint)
    	}
    	buf := state.b.Bytes()
    	if len(buf) < n {
    		errorf("invalid uint data length %d: exceeds input size %d", n, len(buf))
    	}
    	// Don't need to check error; it's safe to loop regardless.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
  5. src/go/types/badlinkname.go

    // See go.dev/issue/67401.
    //
    //go:linkname badlinkname_Checker_infer go/types.(*Checker).infer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 702 bytes
    - Viewed (0)
  6. pkg/controller/garbagecollector/errors.go

    limitations under the License.
    */
    
    package garbagecollector
    
    import (
    	"fmt"
    )
    
    type restMappingError struct {
    	kind    string
    	version string
    }
    
    func (r *restMappingError) Error() string {
    	versionKind := fmt.Sprintf("%s/%s", r.version, r.kind)
    	return fmt.Sprintf("unable to get REST mapping for %s.", versionKind)
    }
    
    // Message prints more details
    func (r *restMappingError) Message() string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 28 14:00:10 UTC 2017
    - 1.3K bytes
    - Viewed (0)
  7. internal/s3select/errors.go

    package s3select
    
    import "strings"
    
    // SelectError - represents s3 select error specified in
    // https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectSELECTContent.html#RESTObjectSELECTContent-responses-special-errors.
    type SelectError interface {
    	Cause() error
    	ErrorCode() string
    	ErrorMessage() string
    	HTTPStatusCode() int
    	Error() string
    }
    
    type s3Error struct {
    	code       string
    	message    string
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 14 16:48:36 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/errors.go

    func NewInvalidError(errors field.ErrorList) InvalidError {
    	return InvalidError{errors}
    }
    
    // InternalError is generated when an error occurs in the storage package, i.e.,
    // not from the underlying storage backend (e.g., etcd).
    type InternalError struct {
    	Reason string
    }
    
    func (e InternalError) Error() string {
    	return e.Reason
    }
    
    // IsInternalError returns true if and only if err is an InternalError.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 08 15:39:10 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/cgo/ast_go1.go

    //go:build compiler_bootstrap
    
    package main
    
    import (
    	"go/ast"
    	"go/token"
    )
    
    func (f *File) walkUnexpected(x interface{}, context astContext, visit func(*File, interface{}, astContext)) {
    	error_(token.NoPos, "unexpected type %T in walk", x)
    	panic("unexpected type")
    }
    
    func funcTypeTypeParams(n *ast.FuncType) *ast.FieldList {
    	return nil
    }
    
    func typeSpecTypeParams(n *ast.TypeSpec) *ast.FieldList {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 30 21:45:10 UTC 2022
    - 578 bytes
    - Viewed (0)
Back to top