ExceptionHandler typedef

ExceptionHandler = ErrorMessage? Function(Exception exception, StackTrace stackTrace)

A typedef for a function that handles exceptions and their stack trace. It may return an ErrorMessage or null.

Implementation

typedef ExceptionHandler = ErrorMessage? Function(
  Exception exception,
  StackTrace stackTrace,
);