rest_errors

package
v0.0.0-...-6c6b0cf Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewError

func NewError(msg string) error

Types

type RestErr

type RestErr struct {
	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(msg string, status int, error string) *RestErr

Jump to

Keyboard shortcuts

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