Source code for pylag.exceptions

""" PyLag exceptions

The intention here is to help callers distinguish between expected
PyLag exceptions and regular python exceptions, which indicate a
bug in PyLag's API. See Item 87 of Effective Python by Brett
Slatkin (2020) for a full description.
"""


[docs]class PyLagException(Exception): pass
[docs]class PyLagRuntimeError(PyLagException): pass
[docs]class PyLagValueError(PyLagException): pass
[docs]class PyLagTypeError(PyLagException): pass
[docs]class PyLagOutOfBoundsError(PyLagException): pass