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.

min_max_check(t_min, t_max)[source]

Method returns None or if the start of time period is smaller or equal to it’s end. It returns exception message if provided numbers cannot satisfy this condition.

str_to_float(data, value)[source]

Method returns float number. If unsuccessful, it returns an exception 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.

get_message()[source]

Gets the exception message.

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.

get_message()[source]

Gets the exception message.

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.

get_message()[source]

Gets the exception message.

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.

get_message()[source]

Gets the exception message.

exception rk_comparison.core.exceptions.exceptions.StrToFloatError(message='Provided character is not a number.')[source]

Bases: Exception

Exception raised for errors when string provided by user cannot be changed to float.

get_message()[source]

Gets the exception message.

exception rk_comparison.core.exceptions.exceptions.TooLargeDelta(message='Delta is too large for this time period.')[source]

Bases: Exception

Exception raised for errors when delta is too large for given time period.

get_message()[source]

Gets the exception message.

Module contents