api_errors

package
v0.0.0-...-8f43f39 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiError

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

func NewBadRequestError

func NewBadRequestError(message string) ApiError

func NewErrorFromBytes

func NewErrorFromBytes(bytes []byte) (ApiError, error)

func NewInternalServerError

func NewInternalServerError(message string, err error) ApiError

func NewNotFoundError

func NewNotFoundError(message string) ApiError

func NewRestError

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

func NewUnauthorizedError

func NewUnauthorizedError(message string) ApiError

Jump to

Keyboard shortcuts

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