Documentation ¶
Index ¶
- func BeforeReport(report func(e *define.GeneralError) bool)
- func DisableReport()
- func EnableReport()
- func IsOneOf(err error, targets ...error) bool
- func New(code int, message ...interface{}) error
- func NewCustom(customError CustomError) error
- func NewDefined(definedErr *define.GeneralError) error
- type CustomError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeforeReport ¶
func BeforeReport(report func(e *define.GeneralError) bool)
BeforeReport decides to report or not the error to the error reporting manager
func DisableReport ¶
func DisableReport()
func EnableReport ¶
func EnableReport()
func NewCustom ¶
func NewCustom(customError CustomError) error
Types ¶
type CustomError ¶
type CustomError struct { Code int Message string // Log to application Logger LogToApp bool // Set instantly this error if you want to override the code & message GeneralError *define.GeneralError }
Click to show internal directories.
Click to hide internal directories.