package errors
import "github.com/AzureAD/microsoft-authentication-library-for-go/apps/errors"
Index ¶
- func As(err error, target interface{}) bool
- func Is(err, target error) bool
- func New(text string) error
- func Verbose(err error) string
- type CallErr
Functions ¶
func As ¶
As finds the first error in errors chain that matches target, and if so, sets target to that error value and returns true. Otherwise, it returns false.
func Is ¶
Is reports whether any error in errors chain matches target.
func New ¶
New is equivalent to errors.New().
func Verbose ¶
Verbose prints the most verbose error that the error message has.
Types ¶
type CallErr ¶
type CallErr struct { Req *http.Request // Resp contains response body Resp *http.Response Err error }
CallErr represents an HTTP call error. Has a Verbose() method that allows getting the http.Request and Response objects. Implements error.
func (CallErr) Error ¶
Errors implements error.Error().
func (CallErr) Verbose ¶
Verbose prints a versbose error message with the request or response.
Source Files ¶
- Version
- v0.6.1
- Published
- Aug 18, 2022
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 2 weeks ago –
Tools for package owners.