chemmisol 0.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
chemmisol::TooManyProducedSpeciesInReaction Class Reference

#include <reaction.h>

Inheritance diagram for chemmisol::TooManyProducedSpeciesInReaction:
Inheritance graph
[legend]
Collaboration diagram for chemmisol::TooManyProducedSpeciesInReaction:
Collaboration graph
[legend]

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 ChemicalSystemgetChemicalSystem () const
 
const ReactiongetInvalidReaction () const
 

Additional Inherited Members

- Protected Attributes inherited from chemmisol::InvalidReaction
const ChemicalSystemchemical_system
 
const Reactioninvalid_reaction
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TooManyProducedSpeciesInReaction()

chemmisol::TooManyProducedSpeciesInReaction::TooManyProducedSpeciesInReaction ( const ChemicalSystem chemical_system,
const Reaction invalid_reaction 
)

Defines an TooManyProducedSpeciesInReaction exception.

Parameters
chemical_systemchemical system that tried to handle the ill formed reaction.
invalid_reactionill formed reaction.

Member Function Documentation

◆ what()

const char * chemmisol::TooManyProducedSpeciesInReaction::what ( ) const
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.


The documentation for this class was generated from the following file: