Skip to content

The open alternative to Salesforce, designed for AI.

472 B
Raw Blame
import { msg } from '@lingui/core/macro';

import { CustomException } from 'src/utils/custom-exception';

export class AgentHistoryMigrationStateException extends CustomException<
  'INVALID_STATE' | 'MISSING_STATE' | 'INVALID_WORKSPACE'
> {
  constructor(
    code: 'INVALID_STATE' | 'MISSING_STATE' | 'INVALID_WORKSPACE',
    message: string,
  ) {
    super(message, code, {
      userFriendlyMessage: msg`Unable to access AI history. Please try again.`,
    });
  }
}