MCPcopy Create free account
hub / github.com/kataras/iris / OnAnyErrorCode

Method OnAnyErrorCode

core/router/party.go:145–145  ·  view source on GitHub ↗

OnAnyErrorCode registers a handlers chain for all error codes (4xxx and 5xxx, change the `ClientErrorCodes` and `ServerErrorCodes` variables to modify those) Look `UseError` and `OnErrorCode` too.

(handlers ...context.Handler)

Source from the content-addressed store, hash-verified

143 // (4xxx and 5xxx, change the `ClientErrorCodes` and `ServerErrorCodes` variables to modify those)
144 // Look `UseError` and `OnErrorCode` too.
145 OnAnyErrorCode(handlers ...context.Handler) []*Route
146
147 // Party returns a new child Party which inherites its
148 // parent's options and middlewares.

Callers 8

mainFunction · 0.65
SetupErrorHandlersMethod · 0.65
newAppFunction · 0.65
initFunction · 0.65
TestResponseErrFunction · 0.65
handleHTTPErrorMethod · 0.65
TestOnAnyErrorCodeFunction · 0.65
TestSwitchHostsRedirectFunction · 0.65

Implementers 1

APIBuildercore/router/api_builder.go

Calls

no outgoing calls

Tested by 3

TestResponseErrFunction · 0.52
TestOnAnyErrorCodeFunction · 0.52
TestSwitchHostsRedirectFunction · 0.52