Documentation
¶
Overview ¶
Package errors exists to avoid some import cycles.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EOpts ¶
type EOpts struct {
// SuppressTraceErr is an option to suppress the trace error.
// This is useful on retries where you don't want to see the same error.
SuppressTraceErr bool
// CallNum is the number of calls to skip in the stack trace.
CallNum int
// StackTrace is an option to include the stack trace.
StackTrace bool
// Attrs are additional attributes to include in the error.
Attrs []slog.Attr
// LogLevel is the log level to use when logging this error. This defaults to slog.LevelError,
// but can be overridden with WithLogLevel().
LogLevel slog.Level
}
EOpts is the options for E(). Defaults are set by errors.E().
Click to show internal directories.
Click to hide internal directories.