"""
PDG API exception classes.
"""
[docs]
class PdgApiError(Exception):
"""PDG API base exception."""
pass
[docs]
class PdgInvalidPdgIdError(Exception):
"""Exception raised when encountering an invalid PDG Identifier."""
pass
[docs]
class PdgNoDataError(Exception):
"""Exception raised if no data is found."""
pass
[docs]
class PdgAmbiguousValueError(Exception):
"""Exception raised in cases where the choice of value is ambiguous and there is no single best value."""
pass
[docs]
class PdgRoundingError(Exception):
"""Exception raised in cases where PDG rounding is undefined."""
pass