# Functions

AddTag adds the provided tag to err and returns the result If not an Error, returns a new Error with the tag.
AsError returns the provided error interface as an Error Returns nil if the provided error is not an Error.
ErrorAction generates an error for an action action: The action that is occurring dataType: The data type that the action is occurring on args: Any args that should be included in the message (nil if none).
ErrorData generates an error for a data element status: The status of the data dataType: The data type that the error is occurring on args: Any args that should be included in the message (nil if none).
HasTag returns true if err has the provided tag If not an Error, returns false.
IsError returns true if the provided error interface is an Error.
New returns an Error containing the provided message.
Newf returns an Error containing the formatted message.
Root returns the root message of an Error If not an Error, returns err.Error().
RootContext returns the root context of an Error If not an Error, returns err.Error().
RootContextErr returns the root context of an Error as an error If not an Error, returns err.
RootErr returns the root message of an Error as an error If not an Error, returns err.
SetStatus sets the status and returns the result If not an Error, returns a new Error with the status.
Status returns the status If not an Error, returns "".
Tags returns the tags an Error If not an Error, returns an empty list.
Trace returns the trace messages of an Error If not an Error, returns err.Error().
TraceContext returns the trace context of an Error If not an Error, returns err.Error().
TraceContextErr returns the trace context of an Error as an error If not an Error, returns err.
TraceErr returns the trace messages of an Error as an error If not an Error, returns err.
Wrap returns an Error containing the provided message and error.
WrapErrorAction wraps an error for an action action: The action that is occurring dataType: The data type that the action is occurring on args: Any args that should be included in the message (nil if none) err: Error to wrap.
WrapErrorData wraps an error for a data element status: The status of the data dataType: The data type that the error is occurring on args: Any args that should be included in the message (nil if none) err: Error to wrap.
Wrapf returns an Error containing the formatted message and provided error.

# Structs

Error represents an error entity.
ErrorContext represents the context of an error message.