Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorHandlerDefault = "default" ErrorHandlerRedirect = "redirect" ErrorHandlerWWWAuthenticate = "www_authenticate" )
Variables ¶
View Source
var (
ErrUnsupportedErrorHandlerType = errors.New("error handler type unsupported")
)
Functions ¶
This section is empty.
Types ¶
type ErrorHandler ¶
type ErrorHandler interface { ID() string CanExecute(ctx heimdall.Context, causeErr error) bool Execute(ctx heimdall.Context, causeErr error) error WithConfig(config map[string]any) (ErrorHandler, error) }
func CreatePrototype ¶
type ErrorHandlerTypeFactory ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.