pdg.errors module

PDG API exception classes.

exception pdg.errors.PdgAmbiguousValueError[source]

Bases: Exception

Exception raised in cases where the choice of value is ambiguous and there is no single best value.

exception pdg.errors.PdgApiError[source]

Bases: Exception

PDG API base exception.

exception pdg.errors.PdgInvalidPdgIdError[source]

Bases: Exception

Exception raised when encountering an invalid PDG Identifier.

exception pdg.errors.PdgNoDataError[source]

Bases: Exception

Exception raised if no data is found.

exception pdg.errors.PdgRoundingError[source]

Bases: Exception

Exception raised in cases where PDG rounding is undefined.