refactor: created custom error for a token already exists

This commit is contained in:
2024-06-16 08:47:07 -04:00
parent f9d7a6bbd2
commit 3b1fe66261
3 changed files with 9 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
export class TokenAlreadyExistsError extends Error {
constructor() {
super("Token already exists in the database");
}
}