Documentation ¶
Index ¶
- Variables
- func BadParamsError(c echo.Context, err error) error
- func BadRequestError(c echo.Context, err error) error
- func ErrorCodeStrings() []string
- func InternalError(c echo.Context) error
- func ServiceUnavailableError(c echo.Context, err error) error
- func ValidationFailedError(c echo.Context, err error) error
- type ErrorCode
- type ErrorResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoNodesAvailable = errors.New("no Nodes are available to process this request")
Functions ¶
func BadParamsError ¶
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
func ServiceUnavailableError ¶ added in v0.9.0
func ValidationFailedError ¶ added in v0.4.18
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.