Class EmuProcessExitedException

All Implemented Interfaces:
Serializable

public class EmuProcessExitedException extends EmuSystemException
A simulated process (or thread group) has exited

The simulator should catch this exception and terminate accordingly. Continuing execution of the emulator beyond this exception will cause undefined behavior.

See Also:
  • Constructor Details

    • EmuProcessExitedException

      public EmuProcessExitedException(PcodeArithmetic<T> arithmetic, T status)
      Construct a process-exited exception with the given status code

      This will attempt to concretize the status according to the given arithmetic, for display purposes. The original status remains accessible via getStatus()

      Type Parameters:
      T - the type values processed by the library
      Parameters:
      arithmetic - the machine's arithmetic
      status -
  • Method Details

    • tryConcereteToString

      public static <T> String tryConcereteToString(PcodeArithmetic<T> arithmetic, T status)
      Attempt to concretize a value and convert it to hex
      Type Parameters:
      T - the type of the status
      Parameters:
      arithmetic - the arithmetic to operate on the value
      status - the status value
      Returns:
      the hex string, or the error message
    • getStatus

      public Object getStatus()
      Get the status code as a T of the throwing machine
      Returns:
      the status