refactor: created custom error for a token already exists
This commit is contained in:
5
src/libs/errors/TokenAlreadyExists.ts
Normal file
5
src/libs/errors/TokenAlreadyExists.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export class TokenAlreadyExistsError extends Error {
|
||||
constructor() {
|
||||
super("Token already exists in the database");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user