werror

package
v0.0.0-...-657a6a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Status        int            `json:"status"`
	FailedReasons []FailedReason `json:"messages"`
	// contains filtered or unexported fields
}

ErrorResponse - error response

func NewBadRequestError

func NewBadRequestError(err error) *ErrorResponse

NewBadRequestError - bad request error

func NewInternalError

func NewInternalError(err error) *ErrorResponse

NewInternalError - internal server error

func NewValidationError

func NewValidationError(er error) *ErrorResponse

NewValidationError - validation error

func (*ErrorResponse) Error

func (err *ErrorResponse) Error() string

Error - to string

func (*ErrorResponse) Unwrap

func (err *ErrorResponse) Unwrap() error

Unwrap - unwrap error

type FailedReason

type FailedReason struct {
	Message string `json:"message"`
}

FailedReason - failed reason

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL