captureException method
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,
);
}
}