Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/hashicorp/errwrap
/ functions
Functions
17 in github.com/hashicorp/errwrap
⨍
Functions
17
◇
Types & classes
3
↓ 8 callers
Function
Wrapf
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 callers
Method
Error
()
errwrap.go:168
↓ 3 callers
Function
GetAll
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 callers
Function
GetAllType
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 callers
Method
Unwrap
()
errwrap.go:176
↓ 2 callers
Function
Walk
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 callers
Function
Wrap
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 callers
Method
WrappedErrors
()
errwrap.go:25
Function
Contains
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
Function
ContainsType
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
Function
Get
Get is the same as GetAll but returns the deepest matching error.
errwrap.go:76
Function
GetType
GetType is the same as GetAllType but returns the deepest matching error.
errwrap.go:86
Function
TestGetAll
(t *testing.T)
errwrap_test.go:13
Function
TestGetAllType
(t *testing.T)
errwrap_test.go:70
Function
TestWrappedError_IsCompatibleWithErrorsUnwrap
(t *testing.T)
errwrap_test.go:112
Function
TestWrappedError_impl
(t *testing.T)
errwrap_test.go:9
Method
WrappedErrors
()
errwrap.go:172