MCPcopy Create free account

hub / github.com/hashicorp/errwrap / functions

Functions17 in github.com/hashicorp/errwrap

↓ 8 callersFunctionWrapf
Wrapf wraps an error with a formatting message. This is similar to using `fmt.Errorf` to wrap an error. If you're using `fmt.Errorf` to wrap errors, y
errwrap.go:49
↓ 3 callersMethodError
()
errwrap.go:168
↓ 3 callersFunctionGetAll
GetAll gets all the errors that might be wrapped in err with the given message. The order of the errors is such that the outermost matching error (the
errwrap.go:98
↓ 3 callersFunctionGetAllType
GetAllType gets all the errors that are the same type as v. The order of the return value is the same as described in GetAll.
errwrap.go:113
↓ 2 callersMethodUnwrap
()
errwrap.go:176
↓ 2 callersFunctionWalk
Walk walks all the wrapped errors in err and calls the callback. If err isn't a wrapped error, this will be called once for err. If err is a wrapped e
errwrap.go:138
↓ 2 callersFunctionWrap
Wrap defines that outer wraps inner, returning an error type that can be cleanly used with the other methods in this package, such as Contains, GetAll
errwrap.go:34
↓ 1 callersMethodWrappedErrors
()
errwrap.go:25
FunctionContains
Contains checks if the given error contains an error with the message msg. If err is not a wrapped error, this will always return false unless the err
errwrap.go:64
FunctionContainsType
ContainsType checks if the given error contains an error with the same concrete type as v. If err is not a wrapped error, this will check the err itse
errwrap.go:71
FunctionGet
Get is the same as GetAll but returns the deepest matching error.
errwrap.go:76
FunctionGetType
GetType is the same as GetAllType but returns the deepest matching error.
errwrap.go:86
FunctionTestGetAll
(t *testing.T)
errwrap_test.go:13
FunctionTestGetAllType
(t *testing.T)
errwrap_test.go:70
FunctionTestWrappedError_IsCompatibleWithErrorsUnwrap
(t *testing.T)
errwrap_test.go:112
FunctionTestWrappedError_impl
(t *testing.T)
errwrap_test.go:9
MethodWrappedErrors
()
errwrap.go:172