Class RemoteProcessFailedException

All Implemented Interfaces:
Serializable

public class RemoteProcessFailedException extends RuntimeException
Thrown if a remote process terminates abruptly with a non-zero error code.
See Also:
  • Field Details

    • errorCode

      private final int errorCode
      The error code returned by the process.
    • process

      private final CSProcess process
      The offending process.
  • Constructor Details

    • RemoteProcessFailedException

      public RemoteProcessFailedException(int ec, CSProcess proc)
      Constructs a new exception.
      Parameters:
      ec - the exit code from the remote JVM.
      proc - the process that was running.
  • Method Details

    • toString

      public String toString()
      Returns a string description of the exception.
      Overrides:
      toString in class Throwable
    • getErrorCode

      public int getErrorCode()
      Returns the error code of the remote JVM.
    • getFailedProcess

      public CSProcess getFailedProcess()
      Returns the process that was running when the error occurred.