teachingAssistant / src /domain /exceptions.py
Michael Hu
refactor based on DDD
5009cb8
raw
history blame contribute delete
918 Bytes
"""Domain-specific exceptions for the TTS application."""
class DomainException(Exception):
"""Base exception for domain-related errors."""
pass
class InvalidAudioFormatException(DomainException):
"""Raised when audio format is not supported."""
pass
class InvalidTextContentException(DomainException):
"""Raised when text content is invalid."""
pass
class TranslationFailedException(DomainException):
"""Raised when translation fails."""
pass
class SpeechRecognitionException(DomainException):
"""Raised when speech recognition fails."""
pass
class SpeechSynthesisException(DomainException):
"""Raised when TTS generation fails."""
pass
class InvalidVoiceSettingsException(DomainException):
"""Raised when voice settings are invalid."""
pass
class AudioProcessingException(DomainException):
"""Raised when audio processing fails."""
pass