gumnut_simulator.exceptions¶
Module Contents¶
- exception gumnut_simulator.exceptions.Error(expression, message)¶
Bases:
ExceptionBase class for all exceptions.
This is the base class for all exceptions raised within the GumnutSimulator context. To provide sufficient user feedback the cause expression of the exception and a somewhat helpfull message is passed to the constructor.
- Parameters
expression – A string containing the expression which caused the exception to be raised.
message – A string containing some more information what could raise such an exception.
- __repr__(self)¶
Return repr(self).
- as_dict(self)¶
- exception gumnut_simulator.exceptions.InvalidPCValue(expression, message)¶
Bases:
ErrorGet’s raised when the programm counter (PC) has an invalid value. This is the case for any value less than
0and greater than4095.
- exception gumnut_simulator.exceptions.InstructionMemorySizeExceeded(expression, message)¶
Bases:
ErrorGet’s raised when trying to upload more data into the instruction memory than it can hold.
- exception gumnut_simulator.exceptions.DataMemorySizeExceeded(expression, message)¶
Bases:
ErrorGet’s raised when trying to upload more data into the data memory than it can hold.
- exception gumnut_simulator.exceptions.DataMemoryAccessViolation(expression, message)¶
Bases:
ErrorGet’s raised when trying to access data from the data memory which isn’t accessible.
- exception gumnut_simulator.exceptions.InvalidInstruction(expression, message)¶
Bases:
ErrorGet’s raised when an unknown or invalid instruction is encountered.