errors

package
v0.0.0-...-d77a3c6 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 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 {
	GetStatus() int
	GetMessage() string
	GetError() string
}

func NewApiError

func NewApiError(statusCode int, message string) ApiError

func NewApiErrorFromBytes

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

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