Create Errors.ts

This commit is contained in:
2021-09-14 09:57:02 -07:00
parent ca50e5f521
commit e28ae3ee68
+19
View File
@@ -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)
}
}