httperr

package
v0.0.0-...-d61b845 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package httperr implements middleware which serves returned errors as HTTP internal server errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(code int, err error) error

func Handle

func Handle(h func(http.ResponseWriter, *http.Request) error) http.Handler

Types

type Err

type Err struct {
	Code int
	Err  error
}

func (*Err) Error

func (h *Err) Error() string

Jump to

Keyboard shortcuts

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