Class ExecutionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.tonic.analysis.execution.core.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 Summary
Constructors Constructor Description ExecutionException(String message, StackFrame frame, int pc, String opcode)Creates an execution exception locating the failure in the executing frame.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StackFramegetFrame()StringgetOpcode()intgetPc()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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 descriptionframe- the frame that was executing, may be nullpc- the program counter at the failureopcode- 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 descriptionframe- the frame that was executing, may be nullpc- the program counter at the failureopcode- mnemonic of the failing instruction, may be nullcause- 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
-
-