errNext method

  1. @internal
  2. @protected
Future errNext(
  1. Request req,
  2. Response resp,
  3. HTTPException e
)

Implementation

@internal
@protected
Future errNext(Request req, Response resp, HTTPException e) async {
  int index = (req.read(#errMiddlewareI) ?? 0) as int;
  req.set(index + 1, #errMiddlewareI);
  var result = await errHandlers[index](req, resp, e, errNext);
  return result;
}