rest_errors

package
v0.0.0-...-9a27e1c Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 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 RestErr

type RestErr interface {
	Message() string
	Status() int
	Error() string
	Causes() []interface{}
}

func NewBadRequestError

func NewBadRequestError(message string) RestErr

func NewInternalServerError

func NewInternalServerError(message string, err error) RestErr

func NewNotFoundError

func NewNotFoundError(message string) RestErr

func NewRestError

func NewRestError(message string, status int, err string, causes []interface{}) RestErr

func NewRestErrorFromBytes

func NewRestErrorFromBytes(bytes []byte) (RestErr, error)

func NewUnauthorizedError

func NewUnauthorizedError(message string) RestErr

Jump to

Keyboard shortcuts

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