CSP for Java
(JCSP) 1.1-rc4

org.jcsp.net.remote
Class RemoteSpawnException

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

public class RemoteSpawnException
extends RuntimeException

Wraps up a non-RuntimeException into a runtime exception that can be ignored or caught and rethrown if required.

Author:
Quickstone Technologies Limited
See Also:
Serialized Form

Field Summary
 Throwable cause
          The actual exception.
 
Constructor Summary
RemoteSpawnException(Throwable cause)
          Constructs a new exception.
 
Method Summary
 void printStackTrace()
          Prints the stack trace of the actual exception.
 void rethrow()
          Rethrows the actual exception.
 String toString()
          Returns a string representation of the actual exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cause

public final Throwable cause
The actual exception.

Constructor Detail

RemoteSpawnException

public RemoteSpawnException(Throwable cause)
Constructs a new exception.

Parameters:
cause - the actual exception.
Method Detail

rethrow

public void rethrow()
             throws Throwable
Rethrows the actual exception.

Throws:
Throwable

printStackTrace

public void printStackTrace()
Prints the stack trace of the actual exception.

Overrides:
printStackTrace in class Throwable

toString

public String toString()
Returns a string representation of the actual exception.

Overrides:
toString in class Throwable

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.