Documentation ¶
Index ¶
- func HasUserMessage(err error) bool
- func IsWarning(err error) bool
- func New(msg string, args ...any) error
- func NewExecError(source error) error
- func NewWarning(msg string, args ...any) error
- func ShouldLogError(err error) bool
- func WithLoggedUserMessage(source error, msg string, args ...any) error
- func WithUserMessage(source error, msg string, args ...any) error
- type ExitError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasUserMessage ¶
func New ¶
New creates new user error with the given message. By default these errors are not logged to Sentry. If you want to log the error, use NewLogged
func NewExecError ¶
func NewWarning ¶
func ShouldLogError ¶
ShouldLogError returns true if the it's a logged user error or is a non-user error
func WithLoggedUserMessage ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.