ditto.exceptions¶
Exception hierarchy for pytest-ditto errors.
DittoWarning
¶
Bases: UserWarning
Category for all pytest-ditto advisory warnings.
Subclasses UserWarning, so a blanket ignore::UserWarning still applies;
use ignore::ditto.exceptions.DittoWarning to silence only ditto's
advisories, or error::ditto.exceptions.DittoWarning to escalate them.
DittoUnknownRecorderError(name, available)
¶
Bases: DittoException
Raised when a requested recorder is not installed.
Source code in ditto/exceptions.py
DittoRecorderLoadError(name, distribution, cause, hint='')
¶
Bases: DittoException
Raised when an installed recorder's entry point fails to load.
Source code in ditto/exceptions.py
DittoRecorderConflictError
¶
Bases: DittoException
Raised when a recorder registration breaks the plugin contract.
Raised when a conflicted recorder is looked up, and when register is
given a name that would conflict. The message describes the conflict and
names the distributions involved.
DittoJSONSerializationError(path, detail)
¶
Bases: DittoException
Raised for values outside ditto's strict JSON data model.
Source code in ditto/exceptions.py
DittoUnhashableStorageOptionsError(value)
¶
Bases: DittoException
Raised when ditto_storage_options contains an unhashable value.