err ¤
The error handling logic.
Contains error and exception definitions.
Classes:
-
ErrorCode–Describes which error occured.
-
Status–An error handling object.
-
TypeNotRecovered–We tried to recover (i.e. look up in the debugger and craft ourselves) the
-
TypeNotFound–The type is not in the debugger.
ErrorCode ¤
Bases: Enum
Describes which error occured.
Feel free to add a new one.
Attributes:
-
SUCCESS– -
FAILURE–Generic failure
-
NO_STRUCTURE_FILE–We tried to load a structure, but the associated structure file doesn't exist.
Status dataclass ¤
An error handling object.
Passing no arguments (i.e. doing Status()) represents a success.
Methods:
-
is_success–Returns True if the Status object denotes a success.
-
is_failure–Returns True if the Status object denotes a failure.
-
succeed–Create a Status object that represents a success.
-
fail–Create a Status object that represents a generic failure.
-
coded_fail–Create a Status object that represents a failure.
Attributes:
TypeNotRecovered ¤
TypeNotFound ¤
Bases: Exception
The type is not in the debugger.