Source code for timeseries.errors

[docs]class IteratorError(ValueError): """ Error raised when creating time series from non-iterable / no-length input. """
[docs]class InputDimensionError(IndexError): """ Error raised when creating time series without matching input dimensions. """
[docs]class DateError(TypeError): """ Error raised when creating time series with non-datetime or duplicate keys. """
[docs]class NumericValueError(TypeError): """ Error raised when creating time series with non-numeric values. """
[docs]class CSVDateError(TypeError): """ Error raised when unable to convert CSV dates to datetime objects. """
[docs]class CSVLoadError(RuntimeError): """ Error raised when unable to load CSV file. """
[docs]class WeightsError(ValueError): """ Error raised when providing invalid parameters to weights. """
[docs]class FilteringWindowError(ValueError): """ Error raised when applying filter in a window larger than the time series. """
[docs]class OperatorError(RuntimeError): """ Error raised when function call fails after time series set operation. """