captureException static method

Future<SentryId> captureException(
  1. dynamic throwable, {
  2. dynamic stackTrace,
  3. Hint? hint,
  4. 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,
}) =>
    _hub.captureException(
      throwable,
      stackTrace: stackTrace,
      hint: hint,
      withScope: withScope,
    );