class documentation
class CPUException:
Basic representation of an exception that occurred in the trace
Warnings
This object is not meant to be constructed directly. Use Transition.exception
instead.
Examples
>>> # From a transition >>> reven_server.trace.transition(id).exception # May be None
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __str__ |
Returns the nicely printable string representation of this instance. |
Method | is |
Whether this exception was raised while the CPU was trying to execute an instruction. |
Property | description |
Property: Textual description of the exception |
Property | related |
Property: The related Instruction if any, otherwise None. |
Instance Variable | _transition |
Undocumented |
def __str__(self):
Returns the nicely printable string representation of this instance.
Returns | |
str | Undocumented |
def is_related_to_instruction(self):
Whether this exception was raised while the CPU was trying to execute an instruction.
Information
Returns | |
bool | A boolean. |
@property
description:
description:
str
=
Property: Textual description of the exception
Information
Returns | |
A string. |
Property: The related Instruction
if any, otherwise None.
This exception might have occurred while an instruction was being executed by the CPU. For instance, this is the case when a page fault occurs. In this case, the related instruction has probably not been fully executed.
This property returns this related instruction, or None if there is no related instruction.
Information
Returns | |
An Instruction or None. |