Source code for nannyml.exceptions

# Author:   Niels Nuyttens  <niels@nannyml.com>
#
# License: Apache Software License 2.0

"""Custom exceptions."""


[docs]class InvalidArgumentsException(BaseException): """An exception indicating that the inputs for a function are invalid.""" pass
[docs]class ChunkerException(BaseException): """An exception indicating an error occurred somewhere during chunking.""" pass
[docs]class MissingMetadataException(BaseException): """An exception indicating metadata columns are missing from the dataframe being processed.""" pass
[docs]class InvalidReferenceDataException(BaseException): """An exception indicating the reference data provided are invalid.""" pass
[docs]class CalculatorException(BaseException): """An exception indicating an error occurred during (drift) calculation.""" pass
[docs]class CalculatorNotFittedException(CalculatorException): """An exception indicating a calculator was not fitted before using it in calculations.""" pass
[docs]class NotFittedException(BaseException): """An exception indicating an object was not fitted before using it.""" pass