Skip to content

Commit 21f9bef

Browse files
mweardyladan
authored andcommitted
feat: add global error handler (open-telemetry#1514)
1 parent 651f9f3 commit 21f9bef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/src/common/Exception.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@
1515
*/
1616

1717
interface ExceptionWithCode {
18-
code: string;
18+
code: string | number;
1919
name?: string;
2020
message?: string;
2121
stack?: string;
2222
}
2323

2424
interface ExceptionWithMessage {
25-
code?: string;
25+
code?: string | number;
2626
message: string;
2727
name?: string;
2828
stack?: string;
2929
}
3030

3131
interface ExceptionWithName {
32-
code?: string;
32+
code?: string | number;
3333
message?: string;
3434
name: string;
3535
stack?: string;

0 commit comments

Comments
 (0)