Source code for tt.errors.generic
"""Generic exception types."""
from .base import TtError
[docs]class InvalidArgumentTypeError(TtError):
"""An exception type for invalid argument types.
.. code-block:: python
>>> from tt import TruthTable
>>> try:
... t = TruthTable(7)
... except Exception as e:
... print(type(e))
...
<class 'tt.errors.generic.InvalidArgumentTypeError'>
"""
[docs]class InvalidArgumentValueError(TtError):
"""An exception type for invalid argument values.
.. code-block:: python
TODO
"""
[docs]class ConflictingArgumentsError(TtError):
"""An exception type for two or more conflicting arguments.
.. code-block:: python
TODO
"""
[docs]class RequiredArgumentError(TtError):
"""An exception for when a required argument is missing.
.. code-block:: python
TODO
"""