mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 10:49:20 +00:00
Create Errors.ts
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user