errors

package
v0.0.0-...-741b8f5 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: Apache-2.0 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 NewAPiErrorFoBytes

func NewAPiErrorFoBytes(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 NewNotFoundApiError

func NewNotFoundApiError(message string) APiError

Jump to

Keyboard shortcuts

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