errorhandler

package
v0.14.1-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorHandler

type ErrorHandler interface {
	HandleError(rw http.ResponseWriter, req *http.Request, err error)
}

func New

func New(opts ...Option) ErrorHandler

type Option

type Option func(*opts)

func WithAuthenticationErrorCode

func WithAuthenticationErrorCode(code int) Option

func WithAuthorizationErrorCode

func WithAuthorizationErrorCode(code int) Option

func WithCommunicationErrorCode

func WithCommunicationErrorCode(code int) Option

func WithInternalServerErrorCode

func WithInternalServerErrorCode(code int) Option

func WithMethodErrorCode

func WithMethodErrorCode(code int) Option

func WithNoRuleErrorCode

func WithNoRuleErrorCode(code int) Option

func WithPreconditionErrorCode

func WithPreconditionErrorCode(code int) Option

func WithVerboseErrors

func WithVerboseErrors(flag bool) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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