captureException static method
Future<SentryId>
captureException(
- dynamic throwable, {
- dynamic stackTrace,
- Hint? hint,
- ScopeCallback? withScope,
Reports the throwable
and optionally its stackTrace
to Sentry.io.
Implementation
static Future<SentryId> captureException(
dynamic throwable, {
dynamic stackTrace,
Hint? hint,
ScopeCallback? withScope,
}) =>
_taskQueue.enqueue(
() => _hub.captureException(
throwable,
stackTrace: stackTrace,
hint: hint,
withScope: withScope,
),
SentryId.empty(),
DataCategory.error,
);