Documentation
¶
Overview ¶
Package errors has functions and structs to facilitade catch specifics errors thougth your program.
For example, use a BadRequest to sinalize a specific error to client
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBadRequest ¶
func NewInternalServerError ¶
func NewNotFound ¶
Types ¶
type BadRequest ¶
type BadRequest struct {
Err error
}
type InternalServerError ¶
type InternalServerError struct {
Err error
}
func (InternalServerError) Error ¶
func (se InternalServerError) Error() string
Satisfy the error interface.
Click to show internal directories.
Click to hide internal directories.