export class BackofficeEmailAlreadyRegisteredError extends Error {
  constructor() {
    super('Backoffice email already registered');
    this.name = 'BackofficeEmailAlreadyRegisteredError';
  }
}
export class BackofficeInvalidCredentialsError extends Error {
  constructor() {
    super('Invalid credentials');
    this.name = 'BackofficeInvalidCredentialsError';
  }
}
export class BackofficeRateLimitedError extends Error {
  constructor(public readonly retryAfterMs: number) {
    super('Too many attempts');
    this.name = 'BackofficeRateLimitedError';
  }
}
