handleError method

void handleError(
  1. Object error,
  2. StackTrace stackTrace
)

Optional side-effect hook for logging, analytics, or crash reporting.

Called before failureResult on every unhandled exception. Must not throw or affect control flow.

Implementation

void handleError(Object error, StackTrace stackTrace) {}