Files
Iain Sproat f93d9093a0 fix(errors): all error should define an appropriate status code (#3112)
* fix(errors): all error should define a status code (default is 500)
- rename NoInviteFoundError to InviteNotFoundError to match xNotFoundError pattern

* remove unused errors
2024-09-25 13:08:13 +02:00

8 lines
250 B
TypeScript

import { BaseError } from '@/modules/shared/errors/base'
export class LibsodiumEncryptionError extends BaseError {
static defaultMessage = 'Error encrypting/decrypting data'
static code = 'LIBSODIUM_ENCRYPTION_ERROR'
static statusCode = 500
}