Skip to content

Commit 811c6a6

Browse files
committed
feat: add getCode public method
1 parent f354ee0 commit 811c6a6

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/errors/AskCodebaseError.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ export class AskCodebaseError extends Error {
88
this.code = code;
99
}
1010

11+
public getCode() {
12+
return this.code
13+
}
14+
1115
public toString() {
1216
return `${this.code}: ${this.message}`;
1317
}

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"compilerOptions": {
33
"module": "commonjs",
44
"target": "ES2020",
5-
"jsx": "react-jsx",
65
"strict": true,
76
"strictNullChecks": true,
87
"lib": ["dom", "dom.iterable", "esnext"],

0 commit comments

Comments
 (0)