function captureException(
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
  exception,
  hint,
) {
  // eslint-disable-next-line deprecation/deprecation
  return hub.getCurrentHub().captureException(exception, prepareEvent.parseEventHintOrCaptureContext(hint));
}
Captures an exception event and sends it to Sentry.

@param exception The exception to capture.
@param hint Optional additional data to attach to the Sentry event.
@returns the id of the captured Sentry event.