Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrConflictToResponse ¶
func ErrConflictToResponse(err errs.ErrConflict) errorResponses.ErrorResponse
func ErrValidationToResponse ¶
func ErrValidationToResponse(err errs.ErrValidation) errorResponses.ErrorResponse
func ErrorHandler ¶
ErrorHandler determines the appropriate error response and code from the error type. It relies on the types defined in errs. The default case is an internal server error hiding the implementation details from the client. In this case a log message is issued containing the error. A log message for context can be provided via parameter internalErrorLogMessage.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.