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'; +}