error

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleError

func HandleError(tag string, errorMsg string, rawErr error, code int, w http.ResponseWriter, r *http.Request)

HandleError is a generic error handler

Types

type APIErrorMessage

type APIErrorMessage struct {
	Status string
	Error  string
}

APIErrorMessage is an object that defines when a generic error occurred

Jump to

Keyboard shortcuts

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