CSP for Java
(JCSP) 1.1-rc4

org.jcsp.net.remote
Class RemoteProcessFailedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jcsp.net.remote.RemoteProcessFailedException
All Implemented Interfaces:
Serializable

public class RemoteProcessFailedException
extends RuntimeException

Thrown if a remote process terminates abruptly with a non-zero error code.

Author:
Quickstone Technologies Limited
See Also:
Serialized Form

Constructor Summary
RemoteProcessFailedException(int ec, CSProcess proc)
          Constructs a new exception.
 
Method Summary
 int getErrorCode()
          Returns the error code of the remote JVM.
 CSProcess getFailedProcess()
          Returns the process that was running when the error occurred.
 String toString()
          Returns a string description of the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 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.


CSP for Java
(JCSP) 1.1-rc4

Submit a bug or feature to jcsp-team@kent.ac.uk
Version 1.1-rc4 of the JCSP API Specification (Copyright 1997-2008 P.D.Austin and P.H.Welch - All Rights Reserved)
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.