Source code for biomol.exceptions
[docs]
class BioMolError(Exception):
"""Base exception class for the biomol package."""
[docs]
class FeatureKeyError(BioMolError, KeyError):
"""Custom exception for errors related to feature keys."""
[docs]
class FeatureOperationError(BioMolError, ValueError):
"""Custom exception for errors related to feature operations."""
[docs]
class ViewOperationError(BioMolError, ValueError):
"""Custom exception for errors related to view operations."""
[docs]
class StructureLevelError(BioMolError, ValueError):
"""Custom exception for errors related to structure levels."""
[docs]
class IndexInvalidError(BioMolError, ValueError):
"""Custom exception for errors related to invalid indices."""
[docs]
class IndexMismatchError(BioMolError, ValueError):
"""Custom exception for errors related to index mismatches."""
[docs]
class IndexOutOfBoundsError(BioMolError, IndexError):
"""Custom exception for errors related to index out of bounds."""