5.2.2. cobramod.error
¶
Errors for CobraMod
This module creates special errors for CobraMod. Read each error for their explanation.
5.2.2.1. Module Contents¶
- exception cobramod.error.NoDelimiter(string: str)¶
Bases:
Exception
Simple Error that should be raised when a string does not include the delimiter “|”
- exception cobramod.error.GraphKeyError¶
Bases:
Exception
Simple Error that should be raised when a value is missing as key in a graph
- exception cobramod.error.FoundInPairError¶
Bases:
Exception
Simple Error that is raised when the pair of a PairDictionary has already given key name.
- exception cobramod.error.NodeAttributeError¶
Bases:
Exception
Simple Error that should be raised when a
cobramod.visualization.Node()
cannot identify its type.
- exception cobramod.error.WrongParserError¶
Bases:
Exception
Simple Error that should be raised if a method cannot handle the parsing.
- exception cobramod.error.WrongDataError¶
Bases:
Exception
Simple Error that should be raised if COBRApy object is not the correct one.
- exception cobramod.error.WrongSyntax¶
Bases:
Exception
Simple Error that should be raised if a specific syntax is invalid. For instance, when strings do not have a certain number of items when splitted.
- exception cobramod.error.PatternNotFound¶
Bases:
Exception
Simple error that should be raised when a pattern is not found in a item. e.g. a substring.
- exception cobramod.error.NoIntersectFound¶
Bases:
Exception
Simple error that should be raised when no intersect is found between two sets.
- exception cobramod.error.NoGeneInformation¶
Bases:
Exception
Simple error that should be raised when given object has no gene information in the database.
- exception cobramod.error.AbbreviationWarning¶
Bases:
Warning
Simple Warning that should be raised when given abbreviation does not exists.
- exception cobramod.error.SuperpathwayWarning¶
Bases:
Warning
Simple Warning that should be raised if a pathway is identified as a Superpathway
- exception cobramod.error.UnbalancedReaction(identifier: str, dict_balance: str)¶
Bases:
Exception
Simple Error that should be raised if a reaction has wrong mass balance.
- exception cobramod.error.NotInRangeError(reaction: cobra.Reaction)¶
Bases:
Exception
Simple Error that should be raised if, after adding a reaction, the optimized value, is not in range.