Source code for finam.errors

"""
FINAM-specific error types.

Errors
======

.. autosummary::
   :toctree: generated

    :noindex: FinamDataError
    :noindex: FinamLogError
    :noindex: FinamMetaDataError
    :noindex: FinamNoDataError
    :noindex: FinamStatusError
    :noindex: FinamTimeError
"""


[docs] class FinamStatusError(Exception): """Error for unexpected status in Components."""
[docs] class FinamTimeError(Exception): """Error for request time not matching available data timestamps."""
[docs] class FinamLogError(Exception): """Error for wrong logging configuration."""
[docs] class FinamNoDataError(Exception): """Error for data not yet being available."""
[docs] class FinamMetaDataError(Exception): """Error for missing but required metadata."""
[docs] class FinamDataError(Exception): """Error for wrong data."""
[docs] class FinamStaticDataError(Exception): """Error for operations that are not allowed on static inputs or outputs."""
[docs] class FinamConnectError(Exception): """Error for wrong connection setup."""
[docs] class FinamCircularCouplingError(Exception): """Error for unresolved circular or bidirectional coupling."""