catchZoneErrors static method

void catchZoneErrors(
  1. Object? error,
  2. StackTrace? stackTrace
)

Implementation

static void catchZoneErrors(Object? error, StackTrace? stackTrace) {
  if (error is HumanException) {
    errorStreamController.add(error);
  } else {
    errorStreamController.add([error, stackTrace].toHumanException(error.toString()));
  }
  logError('Zone error catch', error: error, stackTrace: stackTrace);
}