Class ExecutionException

  • All Implemented Interfaces:
    Serializable

    public class ExecutionException
    extends RuntimeException
    Runtime failure during bytecode execution, carrying the frame, pc, and opcode where it occurred.
    See Also:
    Serialized Form
    • Constructor Detail

      • ExecutionException

        public ExecutionException​(String message,
                                  StackFrame frame,
                                  int pc,
                                  String opcode)
        Creates an execution exception locating the failure in the executing frame.
        Parameters:
        message - the error description
        frame - the frame that was executing, may be null
        pc - the program counter at the failure
        opcode - mnemonic of the failing instruction, may be null
      • ExecutionException

        public ExecutionException​(String message,
                                  StackFrame frame,
                                  int pc,
                                  String opcode,
                                  Throwable cause)
        Creates an execution exception with a cause, locating the failure in the executing frame.
        Parameters:
        message - the error description
        frame - the frame that was executing, may be null
        pc - the program counter at the failure
        opcode - mnemonic of the failing instruction, may be null
        cause - the underlying exception
    • Method Detail

      • getFrame

        public StackFrame getFrame()
        Returns:
        the frame
      • getPc

        public int getPc()
        Returns:
        the pc
      • getOpcode

        public String getOpcode()
        Returns:
        the opcode