Skip to content

Commit 9e8bb4f

Browse files
ExelooMartinFillon
authored andcommitted
fix(common): update exception imports and adjust formatting in abstract class
1 parent 3cb12d0 commit 9e8bb4f

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
bun nx run-many --target=lint,test:unit
1+
pnpm nx run-many --target=lint,test:unit
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
import {INfException} from "../interfaces/exception.type";
1+
import type { INfException } from "../interfaces/exception.type";
22

33
export abstract class NfException extends Error implements INfException {
4-
abstract get code(): number;
4+
abstract get code(): number;
55

6-
protected constructor(message?: string) {
7-
super(message ? `[NANOFORGE] ${message}` : "[NANOFORGE] An error occurred (Unknown exception).");
8-
}
9-
}
6+
protected constructor(message?: string) {
7+
super(
8+
message ? `[NANOFORGE] ${message}` : "[NANOFORGE] An error occurred (Unknown exception).",
9+
);
10+
}
11+
}

packages/common/src/exception/exceptions/not-found.exception.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import {type INfException} from "../interfaces/exception.type";
2-
import {NfException} from "../abstracts/exception.abstract";
1+
import { NfException } from "../abstracts/exception.abstract";
32

43
export class NfNotFound extends NfException {
54
get code(): number {

0 commit comments

Comments
 (0)