captureException static method

void captureException(
  1. dynamic exception, {
  2. StackTrace? stackTrace,
})

Implementation

static void captureException(dynamic exception, {StackTrace? stackTrace}) {
  if (!Sentry.isEnabled) return;

  Sentry.captureException(exception, stackTrace: stackTrace);
}