errors

package
v0.0.0-...-7578c0e Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 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 struct {
	Message    string
	Err        error
	HTTPStatus int
	ErrCode    string
}

APIError wraps error which is interpreted as in http error

func NewAPIError

func NewAPIError(statusCode int, errCode string, message string, err error) (ae APIError)

func (APIError) Error

func (ae APIError) Error() string

Error interface implementation

type APIErrors

type APIErrors []APIError

func (APIErrors) Error

func (aes APIErrors) Error() string

Jump to

Keyboard shortcuts

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