captureException method

  1. @override
  2. @mustCallSuper
FutureOr<void> captureException({
  1. required covariant DiagnosticExpection exception,
})
inherited

Send an exception with the custom informate implement to all the diagnostic.

A DiagnosticExpection extension can be create if you need a custom information.

Implementation

@override
@mustCallSuper
FutureOr<void> captureException({
  required covariant DiagnosticExpection exception,
}) {
  if (!options.mustCaptureExceptions) return null;

  for (Diagnostic diagnostic in _diagnostics) {
    diagnostic.captureException(
      exception: exception,
    );
  }
}