"""Custom exceptions for genome_entropy."""
[docs]
class OrfEntropyError(Exception):
"""Base exception for genome_entropy package."""
pass
[docs]
class ConfigurationError(OrfEntropyError):
"""Raised when there's a configuration error."""
pass
[docs]
class OrfFinderError(OrfEntropyError):
"""Raised when ORF finding fails."""
pass
[docs]
class TranslationError(OrfEntropyError):
"""Raised when translation fails."""
pass
[docs]
class EncodingError(OrfEntropyError):
"""Raised when 3Di encoding fails."""
pass
[docs]
class ModelError(OrfEntropyError):
"""Raised when model loading or inference fails."""
pass
[docs]
class DeviceError(OrfEntropyError):
"""Raised when device selection or initialization fails."""
pass
[docs]
class PipelineError(OrfEntropyError):
"""Raised when the pipeline orchestration fails."""
pass