Documentation ¶ Index ¶ type Error func From(v any, code ...int) *Error func New(message string, code ...int) (err *Error) func Newf(message string, v ...any) *Error func WithStack(message string, code ...int) (err *Error) func (x Error) Code() int func (x Error) Error() string func (x Error) Stack() string func (x Error) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Error ¶ type Error struct { // contains filtered or unexported fields } func From ¶ func From(v any, code ...int) *Error func New ¶ func New(message string, code ...int) (err *Error) func Newf ¶ func Newf(message string, v ...any) *Error func WithStack ¶ func WithStack(message string, code ...int) (err *Error) func (Error) Code ¶ func (x Error) Code() int func (Error) Error ¶ func (x Error) Error() string func (Error) Stack ¶ func (x Error) Stack() string func (Error) String ¶ func (x Error) String() string Source Files ¶ View all Source files error.go fn.go Click to show internal directories. Click to hide internal directories.