Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPIError ¶
func NewAPIError(code validation.ErrorCode, 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
Types ¶
Click to show internal directories.
Click to hide internal directories.