Package org.jcsp.net.remote
Class RemoteProcessFailedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.jcsp.net.remote.RemoteProcessFailedException
-
- All Implemented Interfaces:
java.io.Serializable
public class RemoteProcessFailedException extends java.lang.RuntimeExceptionThrown if a remote process terminates abruptly with a non-zero error code.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RemoteProcessFailedException(int ec, CSProcess proc)Constructs a new exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorCode()Returns the error code of the remote JVM.CSProcessgetFailedProcess()Returns the process that was running when the error occurred.java.lang.StringtoString()Returns a string description of the exception.
-
-
-
Field Detail
-
errorCode
private final int errorCode
The error code returned by the process.
-
process
private final CSProcess process
The offending process.
-
-
Constructor Detail
-
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 Detail
-
toString
public java.lang.String toString()
Returns a string description of the exception.- Overrides:
toStringin classjava.lang.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.
-
-