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)
| 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. |
no outgoing calls