errors

package
v0.0.0-...-80c7f35 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 3 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 {
	Status() int
	Message() string
	Error() string
}

func NewApiErrFromBytes

func NewApiErrFromBytes(body []byte) (ApiError, error)

func NewApiError

func NewApiError(statusCode int, message string) ApiError

func NewBadRequestError

func NewBadRequestError(message string) ApiError

func NewInternalServerError

func NewInternalServerError(message string) ApiError

func NewNotFoundError

func NewNotFoundError(message string) ApiError

Jump to

Keyboard shortcuts

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