How to use the @sentry/types.Severity.Fatal function in @sentry/types

To help you get started, we’ve selected a few @sentry/types examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github getsentry / sentry-javascript / packages / node / src / integrations / onuncaughtexception.ts View on Github external
hub.withScope((scope: Scope) => {
            scope.setLevel(Severity.Fatal);
            hub.captureException(error, { originalException: error });
            if (!calledFatalError) {
              calledFatalError = true;
              onFatalError(error);
            }
          });
        } else {
github getsentry / sentry-react-native / src / js / integrations / reactnativeerrorhandlers.ts View on Github external
getCurrentHub().withScope(scope => {
          if (isFatal) {
            scope.setLevel(Severity.Fatal);
          }
          getCurrentHub().captureException(error, {
            originalException: error
          });
        });