Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteError ¶
func WriteError(w http.ResponseWriter, err error, defaultStatusCode ...int)
Types ¶
type ControllerError ¶
type ControllerError struct { ErrorMessage string Fields []types.ErrorField StatusCode int Err error }
func NewError ¶
func NewError(errorMessage string, fields []types.ErrorField, statusCode int) *ControllerError
func (*ControllerError) Error ¶
func (e *ControllerError) Error() string
Click to show internal directories.
Click to hide internal directories.