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_id has an invalid type.

  • ValueError – If instruction_id is negative.

  • InstructionWithIdNotFoundException – If no matching instruction is found.