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:
Serializable
Thrown if a remote process terminates abruptly with a non-zero error code.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRemoteProcessFailedException
(int ec, CSProcess proc) Constructs a new exception. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the error code of the remote JVM.Returns the process that was running when the error occurred.toString()
Returns a string description of the exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
errorCode
private final int errorCodeThe error code returned by the process. -
process
The offending process.
-
-
Constructor Details
-
RemoteProcessFailedException
Constructs a new exception.- Parameters:
ec
- the exit code from the remote JVM.proc
- the process that was running.
-
-
Method Details