feat: Basic setup with auth
This commit is contained in:
8
common/exceptions/custom-exceptions.ts
Normal file
8
common/exceptions/custom-exceptions.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { HttpException, HttpStatus } from '@nestjs/common';
|
||||
|
||||
// Base exception
|
||||
export class BaseException extends HttpException {
|
||||
protected constructor(code: string, message: string, status: HttpStatus) {
|
||||
super({ code, message }, status);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user