package errutil
import "go.mongodb.org/mongo-driver/internal/errutil"
Index ¶
- func UnwrapError(err error) error
- func WrapError(inner error, message string) error
- func WrapErrorf(inner error, format string, args ...interface{}) error
- type WrappedError
Functions ¶
func UnwrapError ¶
UnwrapError attempts to unwrap the error down to its root cause.
func WrapError ¶
WrapError wraps an error with a message.
func WrapErrorf ¶
WrapErrorf wraps an error with a message.
Types ¶
type WrappedError ¶
type WrappedError interface { // Message gets the basic message of the error. Message() string // Inner gets the inner error if one exists. Inner() error }
WrappedError represents an error that contains another error.
Source Files ¶
errutil.go
- Version
- v1.12.2
- Published
- Nov 8, 2023
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 28 seconds ago –
Tools for package owners.