errors

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPIError

func NewAPIError(message string) error

func NewAPIErrorf

func NewAPIErrorf(format string, a ...any) error

func NewError

func NewError(httpCode int, message string) error

Types

type APIError

type APIError struct {
	Message string `json:"message"`
}

func (*APIError) Error

func (e *APIError) Error() string

type Error

type Error struct {
	HTTPCode int
	Message  string
}

func (*Error) Error

func (e *Error) Error() string

Jump to

Keyboard shortcuts

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