function captureException(exception, captureContext) {
    var syntheticException = new Error('Sentry syntheticException');
    return callOnHub('captureException', exception, {
        captureContext: captureContext,
        originalException: exception,
        syntheticException: syntheticException,
    });
}
Captures an exception event and sends it to Sentry.

@param exception An exception-like object.
@returns The generated eventId.