Documentation ¶
Index ¶
Constants ¶
View Source
const ( NoType = ErrorType(iota) BadRequest NotFound Conflict RequestTimeout Forbidden Internal = NoType )
Variables ¶
This section is empty.
Functions ¶
func GetStackTrace ¶
func GetStackTrace(err error) errors.StackTrace
Types ¶
type ErrorType ¶
type ErrorType uint
func (ErrorType) Newf ¶
func (t ErrorType) Newf(msg string, args ...interface{}) FocusError
Newf creates a new FocusError with formatted message
type FocusError ¶
type FocusError struct { Trans *Trans // contains filtered or unexported fields }
func (FocusError) Error ¶
func (e FocusError) Error() string
Error returns the message of a FocusError
func (FocusError) T ¶
func (e FocusError) T(msg string, params ...string) FocusError
func (FocusError) Unwrap ¶
func (e FocusError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.