Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrorEmptyLogger issued when logger received empty logger to New-method ErrorEmptyLogger = errors.New("options hasn't logger") )
Functions ¶
This section is empty.
Types ¶
type Logic ¶
type Logic struct {
Opts Options
}
Logic is an structure for capture and recover web-errors and panics
func (*Logic) Recover ¶
func (c *Logic) Recover() echo.MiddlewareFunc
Recover is an echo-middleware to capture panics in controllers/actions and send info to sentry
type LogicError ¶
LogicError used for web-controllers
func NewError ¶
func NewError(code int, message string) *LogicError
NewError return LogicError with http-code and error message
func NewErrorf ¶
func NewErrorf(code int, format string, a ...interface{}) *LogicError
NewErrorf return LogicError with http-code and formatted error message
func (*LogicError) Error ¶
func (err *LogicError) Error() string
Error is an implementation of error interface
Click to show internal directories.
Click to hide internal directories.