From ff61fea96fcd9417940f5abe33e135cd7654ef55 Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Sat, 20 Feb 2021 16:07:09 +0100 Subject: [PATCH] Errors: Add AlreadyInDB and PermissionsUpdateInconsistent error Signed-off-by: Philip Molares --- src/errors/errors.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/errors/errors.ts b/src/errors/errors.ts index 084a84bb4..fca24a873 100644 --- a/src/errors/errors.ts +++ b/src/errors/errors.ts @@ -8,6 +8,10 @@ export class NotInDBError extends Error { name = 'NotInDBError'; } +export class AlreadyInDBError extends Error { + name = 'AlreadyInDBError'; +} + export class ClientError extends Error { name = 'ClientError'; } @@ -23,3 +27,7 @@ export class TokenNotValidError extends Error { export class TooManyTokensError extends Error { name = 'TooManyTokensError'; } + +export class PermissionsUpdateInconsistentError extends Error { + name = 'PermissionsUpdateInconsistentError'; +}