ErrorHandler typedef

ErrorHandler = FutureOr<Response> Function(Request request, Object error, StackTrace stackTrace)

A function that handles an error thrown by a Handler.

Implementation

typedef ErrorHandler = FutureOr<Response> Function(
  Request request,
  Object error,
  StackTrace stackTrace,
);