1"""Error related items"""
5 """Base Exception for this script"""
9 """Exception thrown when there are no more values that can be allocated to a type"""
11 def __init__(self, message):
12 super().__init__(message.strip(),
"No more allocatable values to range")
16 """Exception thrown when obtaining a mapped pair results in mismatched values"""
18 def __init__(self, message):
19 super().__init__(message.strip(),
"Resulting matched pair do not match in value")
23 """Exception thrown when a TAG is blank"""
25 def __init__(self, message):
26 super().__init__(message.strip(),
"TAG literal string cannot be blank")
30 """Exception thrown when a TAG definition is malformed"""
32 def __init__(self, message):
33 super().__init__(message.strip(),
"Implicit, single char or number definition of a LOG_TAG type")
37 """Exception thrown when a Log call is malformed"""
39 def __init__(self, message):
40 super().__init__(message.strip(),
"Implicit string or number inside a call to Log")
44 """Split exception into string if it is a ScriptException, else, return the exception
47 error (Exception): Exception to interpret
50 Exception | str: Result
52 if issubclass(type(error), ScriptException):
53 return error.args[1] +
"\n\t" + error.args[0]
Exception thrown when a TAG is blank.
Exception thrown when there are no more values that can be allocated to a type.
Base Exception for this script.
Exception thrown when obtaining a mapped pair results in mismatched values.
Exception|str error_to_string(Exception error)
Split exception into string if it is a ScriptException, else, return the exception.