UNPKG

887 BTypeScriptView Raw
1import { Integration } from '@sentry/types';
2/** Global Promise Rejection handler */
3export declare class OnUncaughtException implements Integration {
4 private readonly _options;
5 /**
6 * @inheritDoc
7 */
8 static id: string;
9 /**
10 * @inheritDoc
11 */
12 name: string;
13 /**
14 * @inheritDoc
15 */
16 readonly handler: (error: Error) => void;
17 /**
18 * @inheritDoc
19 */
20 constructor(_options?: {
21 /**
22 * Default onFatalError handler
23 * @param firstError Error that has been thrown
24 * @param secondError If this was called multiple times this will be set
25 */
26 onFatalError?(firstError: Error, secondError?: Error): void;
27 });
28 /**
29 * @inheritDoc
30 */
31 setupOnce(): void;
32 /**
33 * @hidden
34 */
35 private _makeErrorHandler;
36}
37//# sourceMappingURL=onuncaughtexception.d.ts.map
\No newline at end of file