rest_errors

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestErr

type RestErr struct {
	Message string        `json:"message"`
	Status  int           `json:"status"`
	Error   string        `json:"error"`
	Causes  []interface{} `json:"causes,omitempty"`
}

func NewBadRequestError

func NewBadRequestError(message string) *RestErr

func NewConflictError added in v1.5.1

func NewConflictError(message string) *RestErr

func NewForbiddenError

func NewForbiddenError(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, error string) *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