Documentation ¶
Overview ¶
Package oops makes errors in Go traceable. It provides traceback function to get more information when you return error from the function
Index ¶
- func T(err error) error
- type Error
- func (err *Error) Error() string
- func (err *Error) Format(f ErrorFormat) *Error
- func (err *Error) Func(value string) *Error
- func (err *Error) Info(value string) *Error
- func (err *Error) JSON() map[string]interface{}
- func (err *Error) Line(value int) *Error
- func (err *Error) Origin() string
- func (err *Error) Skip(n int) *Error
- type ErrorFormat
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is a error with more information
func (*Error) Format ¶ added in v1.0.1
func (err *Error) Format(f ErrorFormat) *Error
Format registers format for error strings
type ErrorFormat ¶ added in v1.0.1
ErrorFormat let us specify format for error and stacktrace
Click to show internal directories.
Click to hide internal directories.