httpErrorHandler function

void httpErrorHandler(
  1. HttpRequest req,
  2. Object? error,
  3. StackTrace stackTrace
)

Implementation

void httpErrorHandler(HttpRequest req, Object? error, StackTrace stackTrace) {
  if (error is Exception || error is Error) {
    Dox().config.errorHandler(error, stackTrace);
  }
  httpResponseHandler(error, req);
}