Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 7,481 for Errorfs (0.13 sec)

  1. 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
    // itself followed by the tree of each of its children in turn
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 19:45:41 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. 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)
  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/fmt/errors.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    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,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/errors/errors.go

    limitations under the License.
    */
    
    package errors
    
    import (
    	"errors"
    	"fmt"
    
    	"k8s.io/apimachinery/pkg/util/sets"
    )
    
    // MessageCountMap contains occurrence for each error message.
    type MessageCountMap map[string]int
    
    // Aggregate represents an object that contains multiple errors, but does not
    // necessarily have singular semantic meaning.
    // The aggregate can be used with `errors.Is()` to check for the occurrence of
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 29 09:44:02 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/errors.go

    func (err *error_) report() {
    	if err.empty() {
    		panic("no error")
    	}
    
    	// Cheap trick: Don't report errors with messages containing
    	// "invalid operand" or "invalid type" as those tend to be
    	// follow-on errors which don't add useful information. Only
    	// exclude them if these strings are not at the beginning,
    	// and only if we have at least one error already reported.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/errors.go

    import (
    	"context"
    	"fmt"
    	"net/http"
    	"strings"
    
    	apierrors "k8s.io/apimachinery/pkg/api/errors"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	utilruntime "k8s.io/apimachinery/pkg/util/runtime"
    	"k8s.io/apiserver/pkg/authorization/authorizer"
    )
    
    // Avoid emitting errors that look like valid HTML. Quotes are okay.
    var sanitizer = strings.NewReplacer(`&`, "&amp;", `<`, "&lt;", `>`, "&gt;")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 21 16:18:47 UTC 2018
    - 2.8K bytes
    - Viewed (0)
  8. src/go/types/errors.go

    func (err *error_) report() {
    	if err.empty() {
    		panic("no error")
    	}
    
    	// Cheap trick: Don't report errors with messages containing
    	// "invalid operand" or "invalid type" as those tend to be
    	// follow-on errors which don't add useful information. Only
    	// exclude them if these strings are not at the beginning,
    	// and only if we have at least one error already reported.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. internal/config/errors-utils.go

    	// If this is already a Err, do nothing
    	if e, ok := err.(Err); ok {
    		return e
    	}
    
    	// Show a generic message for known golang errors
    	if errors.Is(err, syscall.EADDRINUSE) {
    		return ErrPortAlreadyInUse(err).Msg("Specified port is already in use")
    	} else if errors.Is(err, syscall.EACCES) || errors.Is(err, syscall.EPERM) {
    		if netErr, ok := err.(*net.OpError); ok {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/validation/field/errors.go

    	return &Error{ErrorTypeInternal, field.String(), nil, err.Error()}
    }
    
    // ErrorList holds a set of Errors.  It is plausible that we might one day have
    // non-field errors in this same umbrella package, but for now we don't, so
    // we can keep it simple and leave ErrorList here.
    type ErrorList []*Error
    
    // NewErrorTypeMatcher returns an errors.Matcher that returns true
    // if the provided error is a Error and has the provided ErrorType.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 11.1K bytes
    - Viewed (0)
Back to top