Documentation
¶
Index ¶
- func IsAPIError(err error) bool
- func IsConflict(err error) bool
- func NewAPIError(code validation.ErrorCode, message string) error
- func NewFieldAPIError(code validation.ErrorCode, fieldName, message string) error
- func WrapAPIError(err error, code validation.ErrorCode, message string) error
- func WrapFieldAPIError(err error, code validation.ErrorCode, fieldName, message string) error
- type APIError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAPIError ¶
func IsConflict ¶
func NewAPIError ¶
func NewAPIError(code validation.ErrorCode, message string) error
func NewFieldAPIError ¶
func NewFieldAPIError(code validation.ErrorCode, fieldName, message string) error
func WrapAPIError ¶
func WrapAPIError(err error, code validation.ErrorCode, message string) error
WrapAPIError will cause the API framework to log the underlying err before returning the APIError as a response. err WILL NOT be in the API response
func WrapFieldAPIError ¶
func WrapFieldAPIError(err error, code validation.ErrorCode, fieldName, message string) error
WrapFieldAPIError will cause the API framework to log the underlying err before returning the APIError as a response. err WILL NOT be in the API response
Types ¶
Click to show internal directories.
Click to hide internal directories.