Documentation ¶
Overview ¶
Custom error package
Index ¶
Constants ¶
View Source
const ( ErrInvalid errCode = "INVALID_INPUT" ErrUnAuthenticated errCode = "NOT_FOUND" ErrForbidden errCode = "FORBIDDEN" ErrInternal errCode = "INTERNAL" ErrTimeout errCode = "TIMEOUT" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Err ¶
type Err struct { // inner error, optional Err error // error code explaining the error Code errCode Message string Resolution string }
func (*Err) GetHTTPStatusCode ¶
func (*Err) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.