ExceptionHandler typedef Null safety

FutureOr<void> 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.


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