Skip to content

quast_decisiontree.core.exceptions

quast_decisiontree.core.exceptions

InvalidProblemDataError

Bases: Exception

raised when the problem data is invalid

Source code in src/quast_decisiontree/core/exceptions.py
10
11
class InvalidProblemDataError(Exception):
    """raised when the problem data is invalid"""

ProblemDataUnknownKeyError

Bases: KeyError

raised when a key is encountered in the problem data dictionary that is not known

Source code in src/quast_decisiontree/core/exceptions.py
14
15
16
17
class ProblemDataUnknownKeyError(KeyError):
    """raised when a key is encountered in the problem data dictionary that is not
    known
    """

InvalidBitstring

Bases: Exception

parent class for invalid bitstrings for a specific encoding

Source code in src/quast_decisiontree/core/exceptions.py
20
21
class InvalidBitstring(Exception):
    """parent class for invalid bitstrings for a specific encoding"""

InvalidOneHotBitstring

Bases: InvalidBitstring

raised when an invalid one-hot bitstring is passed to a one-hot conversion function

Source code in src/quast_decisiontree/core/exceptions.py
24
25
class InvalidOneHotBitstring(InvalidBitstring):
    """raised when an invalid one-hot bitstring is passed to a one-hot conversion function"""

InvalidProblemDictError

Bases: ValueError

Raised when a problem specification dict cannot be resolved to a problem class.

Source code in src/quast_decisiontree/core/exceptions.py
28
29
class InvalidProblemDictError(ValueError):
    """Raised when a problem specification dict cannot be resolved to a problem class."""

InvalidDecisionTreeSetupError

Bases: Exception

raised when an invalid decision tree setup is encountered

Source code in src/quast_decisiontree/core/exceptions.py
32
33
class InvalidDecisionTreeSetupError(Exception):
    """raised when an invalid decision tree setup is encountered"""

DisconnectedDecisionTreeError

Bases: InvalidDecisionTreeSetupError

raised when the decision tree detects that it is disconnected (there are unreachable nodes)

Source code in src/quast_decisiontree/core/exceptions.py
36
37
38
39
class DisconnectedDecisionTreeError(InvalidDecisionTreeSetupError):
    """raised when the decision tree detects that it is disconnected (there are unreachable
    nodes)
    """

NodeNotFoundError

Bases: Exception

if a node specified in a config file couldn't be found

Source code in src/quast_decisiontree/core/exceptions.py
42
43
class NodeNotFoundError(Exception):
    """if a node specified in a config file couldn't be found"""

ProblemDataInvalidEntryError

Bases: Exception

raised when an invalid entry is encountered and checking entries is turned on

Source code in src/quast_decisiontree/core/exceptions.py
46
47
class ProblemDataInvalidEntryError(Exception):
    """raised when an invalid entry is encountered and checking entries is turned on"""

InvalidConfigValueError

Bases: ValueError

raised when there is a value in a config file that isn't valid

Source code in src/quast_decisiontree/core/exceptions.py
50
51
class InvalidConfigValueError(ValueError):
    """raised when there is a value in a config file that isn't valid"""

ProblemDataKeyCollisionError

Bases: Exception

raised when trying to define checks for a key where they already exist

Source code in src/quast_decisiontree/core/exceptions.py
54
55
class ProblemDataKeyCollisionError(Exception):
    """raised when trying to define checks for a key where they already exist"""

QueryAbortError

Bases: Exception

raised when a query is aborted

Source code in src/quast_decisiontree/core/exceptions.py
58
59
class QueryAbortError(Exception):
    """raised when a query is aborted"""

FinalNodeError

Bases: Exception

raised when the next_node method of a final node is called

Source code in src/quast_decisiontree/core/exceptions.py
62
63
class FinalNodeError(Exception):
    """raised when the next_node method of a final node is called"""

InputFinishedTrigger

Bases: Exception

triggered when the user finished input (e.g., enters an empty string) for a query that would accept any number of inputs

Source code in src/quast_decisiontree/core/exceptions.py
66
67
68
69
class InputFinishedTrigger(Exception):
    """triggered when the user finished input (e.g., enters an empty string) for a query that would
    accept any number of inputs
    """

InvalidAnsatzError

Bases: Exception

raised when the ansatz doesn't match the problem or has no parameters

Source code in src/quast_decisiontree/core/exceptions.py
72
73
class InvalidAnsatzError(Exception):
    """raised when the ansatz doesn't match the problem or has no parameters"""

NotSerializableError

Bases: Exception

raised when the saving routines encounter a dictionary entry that isn't serializable

Source code in src/quast_decisiontree/core/exceptions.py
76
77
class NotSerializableError(Exception):
    """raised when the saving routines encounter a dictionary entry that isn't serializable"""

PenaltyDefaultError

Bases: Exception

raised when no penalty default could be calculated

Source code in src/quast_decisiontree/core/exceptions.py
80
81
class PenaltyDefaultError(Exception):
    """raised when no penalty default could be calculated"""

NoRequestFunctionError

Bases: Exception

raised when the request function of a node is called, but it has not been set beforehand

Source code in src/quast_decisiontree/core/exceptions.py
84
85
class NoRequestFunctionError(Exception):
    """raised when the request function of a node is called, but it has not been set beforehand"""

InvalidBackendError

Bases: Exception

raised when the backend cannot be used by the raising node

Source code in src/quast_decisiontree/core/exceptions.py
88
89
class InvalidBackendError(Exception):
    """raised when the backend cannot be used by the raising node"""