chemmisol 0.1
|
#include <reaction.h>
Public Member Functions | |
TooManyProducedSpeciesInReaction (const ChemicalSystem *chemical_system, const Reaction *invalid_reaction) | |
const char * | what () const noexcept override |
Public Member Functions inherited from chemmisol::InvalidReaction | |
InvalidReaction (const ChemicalSystem *chemical_system, const Reaction *invalid_reaction) | |
const ChemicalSystem & | getChemicalSystem () const |
const Reaction & | getInvalidReaction () const |
Additional Inherited Members | |
Protected Attributes inherited from chemmisol::InvalidReaction | |
const ChemicalSystem * | chemical_system |
const Reaction * | invalid_reaction |
Exception thrown when more than one produced species (i.e. a species that does not correspond to a component) is found in the definition of the reaction.
The reaction system should either be rewritten, or components should be defined in the ChemicalSystem.
chemmisol::TooManyProducedSpeciesInReaction::TooManyProducedSpeciesInReaction | ( | const ChemicalSystem * | chemical_system, |
const Reaction * | invalid_reaction | ||
) |
Defines an TooManyProducedSpeciesInReaction exception.
chemical_system | chemical system that tried to handle the ill formed reaction. |
invalid_reaction | ill formed reaction. |
|
inlineoverridenoexcept |
Returns a message that contains suggestions about how to solve the issue, such as current reaction reagents and components defined in the chemical system.