get_instruction_by_id¶
- get_instruction_by_id(instruction_id: int)[source]¶
Return an instruction class by its identifier.
- Parameters:
instruction_id (int) – Instruction identifier to look up.
- Returns:
Matching instruction class.
- Return type:
type[BaseInstruction]
- Raises:
TypeError – If
instruction_idhas an invalid type.ValueError – If
instruction_idis negative.InstructionWithIdNotFoundException – If no matching instruction is found.