Exceptions API¶
anomalybench.analytics.exceptions ¶
Exceptions raised by this package, rooted in the DataExcept hierarchy.
DataExcept supplies structured exceptions for most data and model failures, and
they are used directly wherever one fits. The classes here cover the cases it
has no direct equivalent for, so every error raised by this package still
inherits from dataexcept.DataExceptError and can be caught with it.
These exceptions do not inherit from ValueError, KeyError,
or TypeError. Code that caught those from this package must catch the
DataExcept types instead.
DetectorNotFittedError ¶
Bases: DataScienceError
Raised when a detector is used before fit has run.
Attributes:
| Name | Type | Description |
|---|---|---|
detector_name |
Display name of the detector that was not fitted. |
|
method |
The method that required a fitted detector. |
UnknownDetectorError ¶
Bases: _UnknownKeyError
Raised when a detector key is absent from the registry.
UnknownDatasetError ¶
Bases: _UnknownKeyError
Raised when a dataset selector names something the catalog does not hold.