Documentation ¶
Index ¶
- func New(msg string) error
- func NewWithStack(msg string) error
- func Newf(format string, a ...any) error
- func NewfWithStack(format string, a ...any) error
- func WithMessage(err error, msg string) error
- func WithMessagef(err error, format string, a ...any) error
- func WithStack(err error) error
- type Error
- type Frame
- type Frames
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWithStack ¶
NewWithStack returns an error with a stack trace.
func NewfWithStack ¶
NewfWithStack returns an error with formatted text and a stack trace.
func WithMessage ¶
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func (*Error) StackTrace ¶
StackTrace returns Frames that is most deeply frames in the error chain.
Click to show internal directories.
Click to hide internal directories.