File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed
packages/common/src/exception Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1- bun nx run-many --target=lint,test:unit
1+ pnpm nx run-many --target=lint,test:unit
Original file line number Diff line number Diff line change 1- import { INfException } from "../interfaces/exception.type" ;
1+ import type { INfException } from "../interfaces/exception.type" ;
22
33export 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+ }
Original file line number Diff line number Diff line change 1- import { type INfException } from "../interfaces/exception.type" ;
2- import { NfException } from "../abstracts/exception.abstract" ;
1+ import { NfException } from "../abstracts/exception.abstract" ;
32
43export class NfNotFound extends NfException {
54 get code ( ) : number {
You can’t perform that action at this time.
0 commit comments