ExceptionHandler typedef

FutureOr ExceptionHandler (
  1. Context ctx,
  2. dynamic exception,
  3. StackTrace trace
)

A function that shall be called when an exception occurs when processing a route.

exception is the exception that occurred. trace is the stack trace is the of the exception.

Implementation

typedef FutureOr<dynamic> ExceptionHandler(
    Context ctx, exception, StackTrace trace);