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 <T> 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 - the status code
    • EmuProcessExitedException

      public EmuProcessExitedException(long status)
      Construct a process-exited exception with the given status code
      Parameters:
      status - the status code
  • Method Details

    • tryConcereteToString

      public static <T> String tryConcereteToString(PcodeArithmetic<T> arithmetic, T status)
      Attempt to concretize a value and convert it to decimal
      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