Documentation
¶
Index ¶
- Constants
- func HandleStatus(err CustomError) int
- func NewDbError(from interface{}, query string, err error) error
- func NewError(from interface{}, complement string, err error) error
- func NewParsingError(from interface{}, err error) error
- func NewRequestError(from interface{}, err error, url string, statusCode int) error
- type CustomError
- type Error
Constants ¶
View Source
const ( Default = "default" Request = "request" Parsing = "parsing" Database = "database" GenericErrorMessage = "Something went wrong" )
Variables ¶
This section is empty.
Functions ¶
func HandleStatus ¶
func HandleStatus(err CustomError) int
func NewDbError ¶
func NewParsingError ¶
Types ¶
type CustomError ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func (*Error) GetErrType ¶
func (*Error) GetExtraInfo ¶
func (*Error) GetMessage ¶
Click to show internal directories.
Click to hide internal directories.