Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of about 10,000 for perror (0.08 sec)

  1. 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)
  2. staging/src/k8s.io/apiserver/pkg/storage/errors.go

    func IsExist(err error) bool {
    	return isErrCode(err, ErrCodeKeyExists)
    }
    
    // IsUnreachable returns true if and only if err indicates the server could not be reached.
    func IsUnreachable(err error) bool {
    	return isErrCode(err, ErrCodeUnreachable)
    }
    
    // IsConflict returns true if and only if err is a write conflict.
    func IsConflict(err error) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 08 15:39:10 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  3. internal/hash/errors.go

    type SizeTooLarge struct {
    	Want int64
    	Got  int64
    }
    
    func (e SizeTooLarge) Error() string {
    	return fmt.Sprintf("Size large: got %d, want %d", e.Got, e.Want)
    }
    
    // SizeMismatch error size mismatch
    type SizeMismatch struct {
    	Want int64
    	Got  int64
    }
    
    func (e SizeMismatch) Error() string {
    	return fmt.Sprintf("Size mismatch: got %d, want %d", e.Got, e.Want)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 15 21:08:54 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. internal/s3select/json/errors.go

    func (err *s3Error) Error() string {
    	return err.message
    }
    
    func errInvalidJSONType(err error) *s3Error {
    	return &s3Error{
    		code:       "InvalidJsonType",
    		message:    "The JsonType is invalid. Only DOCUMENT and LINES are supported.",
    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    func errJSONParsingError(err error) *s3Error {
    	return &s3Error{
    		code:       "JSONParsingError",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  5. internal/s3select/errors.go

    }
    
    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
    }
    
    func errMalformedXML(err error) *s3Error {
    	return &s3Error{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 14 16:48:36 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  6. 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)
  7. internal/config/errors-utils.go

    		if netErr, ok := err.(*net.OpError); ok {
    			return ErrPortAccess(netErr).Msg("Insufficient permissions to use specified port")
    		}
    	}
    
    	// Failed to identify what type of error this, return a simple UI error
    	return Err{msg: err.Error()}
    }
    
    // FmtError converts a fatal error message to a more clear error
    // using some colors
    func FmtError(introMsg string, err error, jsonFlag bool) string {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 3.7K 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/apimachinery/pkg/util/errors/errors.go

    // an error, but does satisfy the error interface.
    type aggregate []error
    
    // Error is part of the error interface.
    func (agg aggregate) Error() string {
    	if len(agg) == 0 {
    		// This should never happen, really.
    		return ""
    	}
    	if len(agg) == 1 {
    		return agg[0].Error()
    	}
    	seenerrs := sets.NewString()
    	result := ""
    	agg.visit(func(err error) bool {
    		msg := err.Error()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 29 09:44:02 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  10. src/internal/types/testdata/check/errors.go

    	const c3 = "foo"
    	0 // ERROR "0 (untyped int constant) is not used"
    	0.5 // ERROR "0.5 (untyped float constant) is not used"
    	"foo" // ERROR `"foo" (untyped string constant) is not used`
    	c1 // ERROR "c1 (untyped int constant 991) is not used"
    	c2 // ERROR "c2 (constant 0.5 of type float32) is not used"
    	c1 /* ERROR "c1 + c2 (constant 991.5 of type float32) is not used" */ + c2
    	c3 // ERROR `c3 (untyped string constant "foo") is not used`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top