apierrors

package
v0.0.0-...-c894e35 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIErr

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

APIErr ...

func APIError

func APIError(message string, status int, err string, causes []interface{}) APIErr

APIError ...

func BadRequestAPIError

func BadRequestAPIError(message string) APIErr

BadRequestAPIError ..

func InternalServerAPIError

func InternalServerAPIError(message string, err error) APIErr

InternalServerAPIError ...

func NotFoundAPIError

func NotFoundAPIError(message string) APIErr

NotFoundAPIError ...

func UnauthorizedAPIError

func UnauthorizedAPIError(message string) APIErr

UnauthorizedAPIError ...

Jump to

Keyboard shortcuts

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