Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,138 for ErrorIs (0.18 sec)

  1. src/errors/errors.go

    // Copyright 2011 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 errors implements functions to manipulate errors.
    //
    // The [New] function creates errors whose only content is a text message.
    //
    // An error e wraps another error if e's type has one of the methods
    //
    //	Unwrap() error
    //	Unwrap() []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)
  2. 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)
  3. errors.go

    	// ErrSubQueryRequired sub query required
    	ErrSubQueryRequired = errors.New("sub query required")
    	// ErrInvalidData unsupported data
    	ErrInvalidData = errors.New("unsupported data")
    	// ErrUnsupportedDriver unsupported driver
    	ErrUnsupportedDriver = errors.New("unsupported driver")
    	// ErrRegistered registered
    	ErrRegistered = errors.New("registered")
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Apr 26 02:53:17 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/errors.go

    limitations under the License.
    */
    
    package storage
    
    import (
    	"errors"
    	"fmt"
    
    	apierrors "k8s.io/apimachinery/pkg/api/errors"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/util/validation/field"
    )
    
    var ErrResourceVersionSetOnCreate = errors.New("resourceVersion should not be set on objects to be created")
    
    const (
    	ErrCodeKeyNotFound int = iota + 1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 08 15:39:10 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  5. 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)
  6. src/go/scanner/errors.go

    	}
    	return e.Msg
    }
    
    // ErrorList is a list of *Errors.
    // The zero value for an ErrorList is an empty ErrorList ready to use.
    type ErrorList []*Error
    
    // Add adds an [Error] with given position and error message to an [ErrorList].
    func (p *ErrorList) Add(pos token.Position, msg string) {
    	*p = append(*p, &Error{pos, msg})
    }
    
    // Reset resets an [ErrorList] to no errors.
    func (p *ErrorList) Reset() { *p = (*p)[0:0] }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 3K bytes
    - Viewed (0)
  7. internal/grid/errors.go

    package grid
    
    import (
    	"errors"
    	"fmt"
    )
    
    var (
    	// ErrUnknownHandler is returned when an unknown handler is requested.
    	ErrUnknownHandler = errors.New("unknown mux handler")
    
    	// ErrHandlerAlreadyExists is returned when a handler is already registered.
    	ErrHandlerAlreadyExists = errors.New("mux handler already exists")
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. 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)
  9. cmd/typed-errors.go

    package cmd
    
    import (
    	"errors"
    )
    
    // errInvalidArgument means that input argument is invalid.
    var errInvalidArgument = errors.New("Invalid arguments specified")
    
    // errMethodNotAllowed means that method is not allowed.
    var errMethodNotAllowed = errors.New("Method not allowed")
    
    // errSignatureMismatch means signature did not match.
    var errSignatureMismatch = errors.New("Signature does not match")
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 28 17:14:16 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/handling-errors.md

    The status codes in the 400 range mean that there was an error from the client.
    
    Remember all those **"404 Not Found"** errors (and jokes)?
    
    ## Use `HTTPException`
    
    To return HTTP responses with errors to the client you use `HTTPException`.
    
    ### Import `HTTPException`
    
    ```Python hl_lines="1"
    {!../../../docs_src/handling_errors/tutorial001.py!}
    ```
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 23:43:13 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top