rk_comparison.core.exceptions package
Submodules
rk_comparison.core.exceptions.checks module
- class rk_comparison.core.exceptions.checks.Checks[source]
Bases:
object
Class containing checks for input data.
- check_delta(t_min, delta, t_max)[source]
Method checks the correctness of delta attribute value. Returns None if it’s correct or one of the exception message.
- check_truth_table(truth_table)[source]
Method returns None if the truth table attribute has at least one True appended. Otherwise it returns the error message.
rk_comparison.core.exceptions.exceptions module
- exception rk_comparison.core.exceptions.exceptions.DeltaIsNegative(message='Delta is negative.')[source]
Bases:
Exception
Exception raised for errors when delta is negative.
- exception rk_comparison.core.exceptions.exceptions.DeltaIsZero(message='Delta is equal to 0.')[source]
Bases:
Exception
Exception raised for errors when delta is equal to 0.
- exception rk_comparison.core.exceptions.exceptions.MinHigherThanMax(message='Beginning of the time period is greater than the end.')[source]
Bases:
Exception
Exception raised for errors when t_min is higher than or equal t_max.
- exception rk_comparison.core.exceptions.exceptions.NoMethodChosen(message='No numerical method chosen.')[source]
Bases:
Exception
Exception raised when user didn’t choose any numerical methods.