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)
| 1292 | // as middleware, before any error handler registered through `On(Any)ErrorCode`. |
| 1293 | // See `OnErrorCode` too. |
| 1294 | func (api *APIBuilder) UseError(handlers ...context.Handler) { |
| 1295 | api.middlewareErrorCode = context.UpsertHandlers(api.middlewareErrorCode, handlers) |
| 1296 | } |
| 1297 | |
| 1298 | // Use appends Handler(s) to the current Party's routes and child routes. |
| 1299 | // If the current Party is the root, then it registers the middleware to all child Parties' routes too. |
no test coverage detected