captureException method
Future<SentryId>
captureException(
- dynamic throwable, {
- dynamic stackTrace,
- Scope? scope,
- dynamic hint,
Reports the throwable
and optionally its stackTrace
to Sentry.io.
Implementation
Future<SentryId> captureException(
dynamic throwable, {
dynamic stackTrace,
Scope? scope,
dynamic hint,
}) {
final event = SentryEvent(
throwable: throwable,
timestamp: _options.clock(),
);
return captureEvent(
event,
stackTrace: stackTrace,
scope: scope,
hint: hint,
);
}