We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
logLevel
1 parent ef8e127 commit d36a831Copy full SHA for d36a831
packages/utils/src/error.ts
@@ -1,11 +1,13 @@
1
+import type { ConsoleLevel } from './logger';
2
+
3
/** An error emitted by Sentry SDKs and related utilities. */
4
export class SentryError extends Error {
5
/** Display name of this error instance. */
6
public name: string;
7
- public logLevel: string;
8
+ public logLevel: ConsoleLevel;
9
- public constructor(public message: string, logLevel: string = 'warn') {
10
+ public constructor(public message: string, logLevel: ConsoleLevel = 'warn') {
11
super(message);
12
13
this.name = new.target.prototype.constructor.name;
0 commit comments