Package org.jcsp.net.remote
Class RemoteSpawnException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.jcsp.net.remote.RemoteSpawnException
-
- All Implemented Interfaces:
java.io.Serializable
public class RemoteSpawnException extends java.lang.RuntimeExceptionWraps up a non-RuntimeException into a runtime exception that can be ignored or caught and rethrown if required.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.ThrowablecauseThe actual exception.
-
Constructor Summary
Constructors Constructor Description RemoteSpawnException(java.lang.Throwable cause)Constructs a new exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprintStackTrace()Prints the stack trace of the actual exception.voidrethrow()Rethrows the actual exception.java.lang.StringtoString()Returns a string representation of the actual exception.
-
-
-
Method Detail
-
rethrow
public void rethrow() throws java.lang.ThrowableRethrows the actual exception.- Throws:
java.lang.Throwable
-
printStackTrace
public void printStackTrace()
Prints the stack trace of the actual exception.- Overrides:
printStackTracein classjava.lang.Throwable
-
toString
public java.lang.String toString()
Returns a string representation of the actual exception.- Overrides:
toStringin classjava.lang.Throwable
-
-