api_error

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 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 {
	Status  int    `json:"status"`
	Message string `json:"message"`
}

func NewAPIError

func NewAPIError(status int, message string) *APIError

func NewBadRequestAPIError

func NewBadRequestAPIError(message string) *APIError

func NewInternalServerAPIError

func NewInternalServerAPIError(message string) *APIError

func NewUnauthorizedAPIError

func NewUnauthorizedAPIError(message string) *APIError

func (APIError) Error

func (a APIError) Error() string

Jump to

Keyboard shortcuts

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