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

Method UseError

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

UseError upserts one or more handlers that will be fired, as middleware, before any error handler registered through `On(Any)ErrorCode`. See `OnErrorCode` too.

(handlers ...context.Handler)

Source from the content-addressed store, hash-verified

222 // as middleware, before any error handler registered through `On(Any)ErrorCode`.
223 // See `OnErrorCode` too.
224 UseError(handlers ...context.Handler)
225 // Use appends Handler(s) to the current Party's routes and child routes.
226 // If the current Party is the root, then it registers the middleware to all child Parties' routes too.
227 // To register a middleware for error handlers, look `UseError` method instead.

Callers 2

TestUseWrapOrderFunction · 0.65
NewGroupFunction · 0.65

Implementers 1

APIBuildercore/router/api_builder.go

Calls

no outgoing calls

Tested by 1

TestUseWrapOrderFunction · 0.52