Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequestError ¶
func ErrorCodeStrings ¶
func ErrorCodeStrings() []string
ErrorCodeStrings returns a slice of all String values of the enum
func InternalError ¶
func InternalError(c echo.Context) error
InternalError should not return the details of the error to the client for safety reasons.
func ValidationFailedError ¶ added in v0.5.7
Types ¶
type ErrorCode ¶
type ErrorCode int
func ErrorCodeString ¶
ErrorCodeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func ErrorCodeValues ¶
func ErrorCodeValues() []ErrorCode
ErrorCodeValues returns all values of the enum
func (ErrorCode) IsAErrorCode ¶
IsAErrorCode returns "true" if the value is listed in the enum definition. "false" otherwise
func (ErrorCode) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface for ErrorCode
func (*ErrorCode) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for ErrorCode
type ErrorResponse ¶
Click to show internal directories.
Click to hide internal directories.