package
0.0.0-20211209175121-4e18fe87588a
Repository: https://github.com/mavolin/adam.git
Documentation: pkg.go.dev

# Functions

As finds the first error in err's chain that matches target, and if so, sets target to that error value and returns true.
GenerateStackTrace generates a StackTrace.
Handle handles the passed error.
Is reports whether any error in err's chain matches target.
MustInternal creates a new *InternalError from the passed error using the default description.
MustSilent creates a new silent error using the passed error as cause.
New returns an error that formats as the given text.
NewErrorEmbed creates a new discord.Embed that can be used to build error embeds.
NewInfoEmbed creates a new discord.Embed that can be used to build info embeds.
NewInformationalError creates a new InformationalError with the passed error message.
NewSilent returns a new *InternalError with no description and an error with the passed text as cause.
NewSilentf returns a new *InternalError with no description and an error that formats as the passed text as cause.
NewUserError creates a new *UserInfo with the passed description.
NewUserErrorf returns the result of calling NewUserError with fmt.Sprinf(description, a...).
NewUserErrorl creates a new *UserInfo using the message generated from the passed *i18n.Config as description.
NewUserInfo creates a new *UserInfo with the passed description.
NewUserInfof returns the result of calling NewUserInfo with fmt.Sprinf(description, a...).
NewUserInfol creates a new *UserInfo using the message generated from the passed *i18n.Config as description.
NewWithStack returns a new *InternalError using the default description and an error using the passed text as cause.
NewWithStackf returns a new *InternalError using the default description and an error that formats as the passed text as cause.
SetErrorEmbedTemplate updates the template function used to create new error embeds.
SetInfoEmbedTemplate updates the template function used to create new info embeds.
Silent creates a new *InternalError with no description using the passed error as cause.
Unwrap returns the result of calling the Unwrap method on err, if err's type contains an Unwrap method returning error.
WithDescription creates a new non-silent *InternalError from the passed error using the passed description.
WithDescriptionf creates a new *InternalError from the passed error using the formatted description.
WithDescriptionl creates a new *InternalError from the passed cause using the localized description.
WithStack returns a new *InternalError using the caller's stack trace and the default description.
Wrap wraps the passed error with the passed message and enriches it with a stack trace.
Wrapf wraps the passed error using the formatted passed message, and enriches the new error with a stack trace.
WrapSilent wraps the passed error with passed message, enriches the error with a stack trace.
WrapSilentf wraps the passed error using the formatted passed message, enriches the new error with a stack trace.

# Variables

Abort stops the execution of a command silently, while producing neither a logged error nor a message to the calling user.
HandleDiscordError takes in an *InternalError that fulfills As for *httputil.HTTPError and modifies it if appropriate.
HandleInternalError is called to handle a non-silent InternalError.
No description provided by the author
No description provided by the author
Log logs an InternalError.

# Structs

InformationalError is an error that won't be handled.
InternalError represents a non-user triggered error.
No description provided by the author
No description provided by the author

# Interfaces

Error is an abstraction of a handleable error.
StackTracer is the interface implemented by all types providing stack traces.

# Type aliases

No description provided by the author