Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of about 10,000 for errorT (0.27 sec)

  1. src/errors/wrap_test.go

    		nil,
    	}, {
    		multiErr{errors.New("a"), errorT{"T"}},
    		&errT,
    		true,
    		errorT{"T"},
    	}, {
    		multiErr{errorT{"T"}, errors.New("a")},
    		&errT,
    		true,
    		errorT{"T"},
    	}, {
    		multiErr{errorT{"a"}, errorT{"b"}},
    		&errT,
    		true,
    		errorT{"a"},
    	}, {
    		multiErr{multiErr{errors.New("a"), errorT{"a"}}, errorT{"b"}},
    		&errT,
    		true,
    		errorT{"a"},
    	}, {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:49:49 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. 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)
  3. src/encoding/gob/error.go

    type gobError struct {
    	err error
    }
    
    // errorf is like error_ but takes Printf-style arguments to construct an error.
    // It always prefixes the message with "gob: ".
    func errorf(format string, args ...any) {
    	error_(fmt.Errorf("gob: "+format, args...))
    }
    
    // error_ wraps the argument error and uses it as the argument to panic.
    func error_(err error) {
    	panic(gobError{err})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 23:03:07 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  4. 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)
  5. src/internal/types/testdata/check/errors.go

    func _() {
    	0 /* ERRORx "0 .* is not used" */
    	0 /* ERRORx "0 .* is not used" */
    	0 // ERRORx "0 .* is not used"
    	0 // ERRORx "0 .* is not used"
    }
    
    // Don't report spurious errors as a consequence of earlier errors.
    // Add more tests as needed.
    func _() {
    	if err := foo /* ERROR "undefined" */ (); err != nil /* "no error here" */ {}
    }
    
    // Use unqualified names for package-local objects.
    type T struct{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. 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)
  7. internal/crypto/error.go

    func Errorf(format string, a ...interface{}) error {
    	e := fmt.Errorf(format, a...)
    	ee := Error{}
    	ee.msg = e.Error()
    	ee.cause = errors.Unwrap(e)
    	return ee
    }
    
    // Unwrap the internal error.
    func (e Error) Unwrap() error { return e.cause }
    
    // Error 'error' compatible method.
    func (e Error) Error() string {
    	if e.msg == "" {
    		return "crypto: cause <nil>"
    	}
    	return e.msg
    }
    
    var (
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 28 17:44:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. 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)
  9. security/pkg/pki/error/error_test.go

    			eType:   -1,
    			err:     fmt.Errorf("test error5"),
    			message: "UNKNOWN",
    			code:    codes.Internal,
    		},
    	}
    
    	for k, tc := range testCases {
    		caErr := NewError(tc.eType, tc.err)
    		if caErr.Error() != tc.err.Error() {
    			t.Errorf("[%s] unexpected error: '%s' VS (expected)'%s'", k, caErr.Error(), tc.err.Error())
    		}
    		if caErr.ErrorType() != tc.message {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 29 20:42:01 UTC 2020
    - 2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/errors/errors.go

    type Matcher func(error) bool
    
    // FilterOut removes all errors that match any of the matchers from the input
    // error.  If the input is a singular error, only that error is tested.  If the
    // input implements the Aggregate interface, the list of errors will be
    // processed recursively.
    //
    // This can be used, for example, to remove known-OK errors (such as io.EOF or
    // os.PathNotFound) from a list of errors.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 29 09:44:02 UTC 2023
    - 6.3K bytes
    - Viewed (0)
Back to top