There was an error while loading. Please reload this page.
1 parent ff5532b commit 4eec778Copy full SHA for 4eec778
2 files changed
packages/common/src/exceptions/nfException.ts
@@ -1,3 +1,3 @@
1
-export interface NfException extends Error {
+export interface INfException extends Error {
2
get code(): number;
3
}
packages/common/src/exceptions/notFound.ts
@@ -1,6 +1,6 @@
-import { type NfException } from "./nfException";
+import { type INfException } from "./nfException";
-export class NfNotFound implements NfException {
+export class NfNotFound implements INfException {
4
get code(): number {
5
return 404;
6
@@ -11,6 +11,6 @@ export class NfNotFound implements NfException {
11
cause?: unknown;
12
13
constructor(item: string) {
14
- this.message = item + "not found.";
+ this.message = `${item} not found.`;
15
16
0 commit comments