Documentation ¶
Index ¶
- type ApiError
- func NewApiError(message string, error string, status int, cause CauseList) ApiError
- func NewApiErrorFromBytes(data []byte) (ApiError, error)
- func NewBadRequestApiError(message string) ApiError
- func NewConflictApiError(id string) ApiError
- func NewForbiddenApiError(message string) ApiError
- func NewInternalServerApiError(message string, err error) ApiError
- func NewMethodNotAllowedApiError() ApiError
- func NewNotFoundApiError(message string) ApiError
- func NewTooManyRequestsError(message string) ApiError
- func NewUnauthorizedApiError(message string) ApiError
- func NewValidationApiError(message string, error string, cause CauseList) ApiError
- type CauseList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiError ¶
type ApiError interface { Message() string Code() string Status() int Cause() CauseList Error() string }
func NewApiError ¶
func NewApiErrorFromBytes ¶
func NewBadRequestApiError ¶
func NewConflictApiError ¶
func NewForbiddenApiError ¶
func NewMethodNotAllowedApiError ¶
func NewMethodNotAllowedApiError() ApiError
func NewNotFoundApiError ¶
func NewTooManyRequestsError ¶
func NewUnauthorizedApiError ¶
Click to show internal directories.
Click to hide internal directories.