apierrors

package
v0.0.0-...-74b6fac Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: MIT Imports: 1 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 {
	Error() string
	HttpStatus() int
}

type ClientError

type ClientError struct {
	HttpStatusCode int
	Err            error
}

func NewClientError

func NewClientError(err error) *ClientError

func (*ClientError) Error

func (e *ClientError) Error() string

func (*ClientError) HttpStatus

func (e *ClientError) HttpStatus() int

type GeneralError

type GeneralError struct {
	HttpStatusCode int
	Err            error
}

func NewGeneralError

func NewGeneralError(err error) *GeneralError

func (*GeneralError) Error

func (e *GeneralError) Error() string

func (*GeneralError) HttpStatus

func (e *GeneralError) HttpStatus() int

type NotFoundError

type NotFoundError struct {
	HttpStatusCode int
	Err            error
}

func NewNotFoundError

func NewNotFoundError(err error) *NotFoundError

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

func (*NotFoundError) HttpStatus

func (e *NotFoundError) HttpStatus() int

Jump to

Keyboard shortcuts

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