Documentation
¶
Index ¶
- Constants
- func ErrorMessage(err error) string
- func ErrorStatus(err error) int
- func ErrorType(err error) string
- func NewInvalidDataStateError(message string) error
- func NewInvalidRequestError(message string) error
- func NewNotFoundError(message string) error
- func NewServerError(message string) error
- func NewUpdateFailureError(message string) error
Constants ¶
View Source
const ( InvalidRequestErrorType = "invalid_request_error" NotFoundErrorType = "not_found_error" InvalidDataStateErrorType = "invalid_data_state" UpdateFailureErrorType = "update_failure_error" ServerErrorType = "server_error" )
View Source
const ( InvalidRequestErrorStatus = 400 NotFoundErrorStatus = 404 InvalidDataStateErrorStatus = 409 UpdateFailureErrorStatus = 500 ServerErrorStatus = 500 )
Variables ¶
This section is empty.
Functions ¶
func ErrorMessage ¶
func ErrorStatus ¶
func NewInvalidRequestError ¶
func NewNotFoundError ¶
func NewServerError ¶
func NewUpdateFailureError ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.