25 lines
578 B
TypeScript
25 lines
578 B
TypeScript
import { HttpException, HttpStatus } from '@nestjs/common';
|
|
|
|
// Base exception
|
|
export class BaseException extends HttpException {
|
|
protected constructor(
|
|
errorCode: string,
|
|
errorMessage: string,
|
|
status: HttpStatus
|
|
) {
|
|
super({ code: errorCode, message: errorMessage }, status);
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Organization Exceptions
|
|
* */
|
|
export class OrganizationNotFoundException extends BaseException {
|
|
|
|
}
|
|
// export class NotPartOfOrganizationException extends BaseException {
|
|
// constructor(code: string, message: string, status: HttpStatus) {
|
|
// super();
|
|
// }
|
|
// }
|