Source code for asdf.exceptions

from jsonschema import ValidationError

__all__ = [
    "AsdfConversionWarning",
    "AsdfDeprecationWarning",
    "AsdfProvisionalAPIWarning",
    "AsdfWarning",
    "DelimiterNotFoundError",
    "ValidationError",
]


[docs]class AsdfWarning(Warning): """ The base warning class from which all ASDF warnings should inherit. """
[docs]class AsdfDeprecationWarning(AsdfWarning, DeprecationWarning): """ A warning class to indicate a deprecated feature. """
[docs]class AsdfConversionWarning(AsdfWarning): """ Warning class used for failures to convert data into custom types. """
[docs]class DelimiterNotFoundError(ValueError): """ Indicates that a delimiter was not found when reading or seeking through a file. """
[docs]class AsdfProvisionalAPIWarning(AsdfWarning, FutureWarning): """ Used for provisional features where breaking API changes might be introduced at any point (including minor releases). These features are likely to be added in a future ASDF version. However, Use of provisional features is highly discouraged for production code. """