diff --git a/src/exception/Errors.ts b/src/exception/Errors.ts new file mode 100644 index 0000000..d8db263 --- /dev/null +++ b/src/exception/Errors.ts @@ -0,0 +1,19 @@ +import { CustomError } from 'ts-custom-error' + + +export class ServiceError extends CustomError { + public constructor( + public statusCode: number, + message: string + ) { + super(message) + } +} + +export class DatabaseError extends CustomError { + public constructor( + message: string + ) { + super(message) + } +} \ No newline at end of file