errorHandler

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONLoadError

func JSONLoadError(w http.ResponseWriter, err error)

JSONLoadError is for errors occuring when intended to return JSON. TODO: Return properly

func JSONReturnError

func JSONReturnError(w http.ResponseWriter, err error)

JSONReturnError is for errors that need to return as json, to respond to the request

func PageLoadError

func PageLoadError(w http.ResponseWriter, err error)

PageLoadError is for errors that occur loading whole pages.

func StandardError

func StandardError(err error)

StandardError is for items that just need errors loged and no special handling.

Types

This section is empty.

Jump to

Keyboard shortcuts

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