Documentation ¶
Index ¶
- Constants
- func GetRuntimeFrames(skip int) *runtime.Frames
- func StackTrace() []*gostackparse.Goroutine
- func Throw(e *AppErr)
- type AppErr
- func (msg AppErr) Compose(message string, data ...interface{}) *AppErr
- func (msg *AppErr) Error() string
- func (msg *AppErr) Errors() interface{}
- func (msg *AppErr) JSON() interface{}
- func (msg AppErr) MarshalJSON() ([]byte, error)
- func (msg AppErr) StackTrace() *runtime.Frames
- func (msg AppErr) Throw(message string, data ...interface{})
- func (msg *AppErr) Trace()
Constants ¶
View Source
const DefaultErrCode = 1
Variables ¶
This section is empty.
Functions ¶
func GetRuntimeFrames ¶
func StackTrace ¶
func StackTrace() []*gostackparse.Goroutine
Types ¶
type AppErr ¶
type AppErr struct { Err error `json:"err"` Code uint `json:"code"` Meta interface{} `json:"meta"` Stack []*gostackparse.Goroutine `json:"_stacks,omitempty"` Frames *runtime.Frames `json:"_frames,omitempty"` }
func (AppErr) MarshalJSON ¶
func (AppErr) StackTrace ¶
Click to show internal directories.
Click to hide internal directories.