Documentation ¶
Index ¶
- type RestError
- func NewBadRequestError(message string) RestError
- func NewError(message string, code string, status int64) RestError
- func NewInternalServerError(message string) RestError
- func NewNotFoundError(message string) RestError
- func NewRestErrorFromBytes(byte []byte) (RestError, error)
- func NewUnauthorizedError(message string) RestError
- func TokenExpired() RestError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RestError ¶
RestError : this hold the signature of the function
func NewBadRequestError ¶
NewBadRequestError : this method implements the bad request error
func NewInternalServerError ¶
NewInternalServerError : this method implements the internal server error
func NewNotFoundError ¶
NewNotFoundError : this method implements the not found error
func NewRestErrorFromBytes ¶
NewRestErrorFromBytes : creates the resterror domain by taking the paramter as a slice of bytes
func NewUnauthorizedError ¶
NewUnauthorizedError : this method implements the unauthorized error
func TokenExpired ¶
func TokenExpired() RestError
TokenExpired : this will return when the token get expired
Click to show internal directories.
Click to hide internal directories.