Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Stack ¶ added in v0.1.0
Stack returns stack if err is wrapped or implements Stack() string method
func Wrap ¶ added in v0.0.3
func Wrap(err, cause error) (e wrapped)
Wrap wraps an error, adds its cause and stack trace
func WrapWithStack ¶ added in v0.1.0
func WrapWithStack(err, cause error) wrapped
WrapWithStack wraps cause with err and stores stack trace
Types ¶
type ErrorString ¶ added in v0.1.0
type ErrorString = String
type String ¶
type String string
String which used in const as error
func (String) NewWithArgs ¶ added in v0.1.0
func (e String) NewWithArgs(args ...interface{}) formattedError
NewWithArgs returns new error which would be formattedError Note: if two errors has different arguments they still would be equal Used Sprintf for formatting, so use #Wrap method instead of %w for wrapping
type TypedError ¶
Click to show internal directories.
Click to hide internal directories.