Exceptions#

exception pyenzyme.enzymeml.core.exceptions.ChEBIIdentifierError(chebi_id: Union[str, int])[source]#

Bases: Exception

Raised when the CHEBI ID is incorrect.

exception pyenzyme.enzymeml.core.exceptions.DataError[source]#

Bases: Exception

Raised when incomplete data has been assigned to a replicate

exception pyenzyme.enzymeml.core.exceptions.ECNumberError(ecnumber: str)[source]#

Bases: Exception

Raised when an EC number does not match the pattern convenrtion

exception pyenzyme.enzymeml.core.exceptions.MeasurementDataSpeciesIdentifierError(both: Optional[list] = None)[source]#

Bases: Exception

Raised when either no ID has been assigned to a measurementData

exception pyenzyme.enzymeml.core.exceptions.ParticipantIdentifierError(id: str, prefix: str)[source]#

Bases: Exception

Raised when an ID does not match the expected format

exception pyenzyme.enzymeml.core.exceptions.SpeciesNotFoundError(species_id: str, enzymeml_part: str, message: str = 'Species ID has not been found')[source]#

Bases: Exception

Raised when a species hasnt been found in a specific element

exception pyenzyme.enzymeml.core.exceptions.UniProtIdentifierError(uniprotid: Union[str, int])[source]#

Bases: Exception

Raised when the UniProt ID is incorrect.