Source code for cytotable.exceptions

"""
Provide hierarchy of exceptions for CytoTable
"""


[docs] class CytoTableException(Exception): """ Root exception for custom hierarchy of exceptions with CytoTable. """
[docs] class NoInputDataException(CytoTableException): """ Exception for no input data. """
[docs] class DatatypeException(CytoTableException): """ Exception for datatype challenges. """
[docs] class SchemaException(CytoTableException): """ Exception for schema challenges. """
[docs] class SQLiteReadOnlyException(CytoTableException): """ Exception for when a SQLite source cannot be opened due to it being in WAL journal mode without write access to its directory (SQLite requires the ability to create '-wal'/'-shm' companion files even for read-only queries against a WAL-mode database). """