Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSimplifyFunc = func(e error) string { return e.Error() + "\n" } ErrActionSimplifyFunc = func(e error) string { if err, ok := e.(Error); ok { return err.action + ":" + e.Error() + "\n" } else { return e.Error() + "\n" } } ErrInLineFunc = func(e error) string { return "> " + e.Error() + " " } ErrActionInLineFunc = func(e error) string { if err, ok := e.(Error); ok { return "> " + err.action + ":" + e.Error() + " " } else { return "> " + e.Error() + " " } } )
Functions ¶
func ErrorFormat ¶ added in v0.28.20240114140844
Types ¶
type Error ¶
type Error struct { Reason string // contains filtered or unexported fields }
func (Error) WithReason ¶ added in v0.28.20240325172911
Click to show internal directories.
Click to hide internal directories.