onActionConfirmed method

  1. @override
void onActionConfirmed(
  1. Report report
)
override

Code which should be triggered if report mode has been confirmed

Implementation

@override
void onActionConfirmed(Report report) {
  final reportHandler =
      _getReportHandlerFromExplicitExceptionHandlerMap(report.error);
  if (reportHandler != null) {
    _logger.info('Using explicit report handler');
    _handleReport(report, reportHandler);
    return;
  }

  for (final handler in _currentConfig.handlers) {
    _handleReport(report, handler);
  }
}