error

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: May 26, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	HandlerWrapper                  = "ERROR/HANDLER/WRAPPER"
	SecurityValidatorResourceAccess = "SECURITY/VALIDATOR/RESOURCE_ACCESS"
	LoadPrincipalError              = "JWT/LOAD_PRINCIPAL_ERROR"
	ExtractClaimsError              = "JWT/EXTRACT_CLAIMS_ERROR"
)

Variables

This section is empty.

Functions

func Handler

func Handler(try func(), catch func(err error))

func Wrapper

func Wrapper(err error, message string) error

Types

type ApiHandler

type ApiHandler[T goservectx.Principal] interface {
	Handler(ctx *goservectx.Request[T], err error, source string)
}

func Default

func Default[T goservectx.Principal]() ApiHandler[T]

Jump to

Keyboard shortcuts

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