Exceptions Generated by Chemicals (chemicals.exceptions)¶
This module contains various exception classes that may be raised by chemicals.
For reporting bugs, adding feature requests, or submitting pull requests, please use the GitHub issue tracker.
- class chemicals.exceptions.UnderspecifiedError[source]¶
Generic error to raise when not enough values are given.
- Attributes
- args
Methods
add_note
Exception.add_note(note) -- add a note to the exception
with_traceback
Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.
- class chemicals.exceptions.OverspeficiedError[source]¶
Generic error to raise when too many values are given.
- Attributes
- args
Methods
add_note
Exception.add_note(note) -- add a note to the exception
with_traceback
Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.
- class chemicals.exceptions.TrivialSolutionError(message, comp_difference=None, iterations=None, err=None)[source]¶
Error raised SS converges to trivial solution.
- Attributes
- args
Methods
add_note
Exception.add_note(note) -- add a note to the exception
with_traceback
Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.
- class chemicals.exceptions.PhaseCountReducedError(message, zs=None, Ks=None)[source]¶
Error raised SS inner flash loop says all Ks are under 1 or above 1.
- Attributes
- args
Methods
add_note
Exception.add_note(note) -- add a note to the exception
with_traceback
Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.
- class chemicals.exceptions.PhaseExistenceImpossible(message, zs=None, T=None, P=None)[source]¶
Error raised SS inner flash loop says all Ks are under 1 or above 1.
- Attributes
- args
Methods
add_note
Exception.add_note(note) -- add a note to the exception
with_traceback
Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.