Skip to content

Commit 4eec778

Browse files
committed
fix(exceptions): bad naming
1 parent ff5532b commit 4eec778

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export interface NfException extends Error {
1+
export interface INfException extends Error {
22
get code(): number;
33
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { type NfException } from "./nfException";
1+
import { type INfException } from "./nfException";
22

3-
export class NfNotFound implements NfException {
3+
export class NfNotFound implements INfException {
44
get code(): number {
55
return 404;
66
}
@@ -11,6 +11,6 @@ export class NfNotFound implements NfException {
1111
cause?: unknown;
1212

1313
constructor(item: string) {
14-
this.message = item + "not found.";
14+
this.message = `${item} not found.`;
1515
}
1616
}

0 commit comments

Comments
 (0)