java.lang.isolate
Class LinkSerializationException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.io.IOException
|
+--java.lang.isolate.LinkSerializationException
- All Implemented Interfaces:
- Serializable
- public class LinkSerializationException
- extends IOException
An exception thrown as the result of one of a number of underlying
serialization-related exceptions.
This is a chained exception which wraps
the underlying exception that occurred during Link.send
or during IsolateMessage.getSerializable
.
The following exceptions may be wrapped:
- Since:
- 1.5
- See Also:
Link.send(java.lang.isolate.IsolateMessage)
,
IsolateMessage.getSerializable()
,
IsolateMessage.newSerializableMessage(java.lang.Object)
,
Serialized Form
Method Summary |
Throwable |
getCause()
Returns the chained Throwable object that was the cause
of this exception. |
LinkSerializationException
public LinkSerializationException(String detail,
Throwable cause)
- Constructs a
LinkSerializationException
with the given detail
message (may be null
) and containing the given cause exception.
A null
cause
indicates that the cause is nonexistent or unknown.
- Parameters:
detail
- the detail message or null
cause
- the cause exception to wrap or null
LinkSerializationException
public LinkSerializationException(Throwable cause)
- Constructs a
LinkSerializationException
containing the given cause
exception.
A null
cause
indicates that the cause is nonexistent or unknown.
- Parameters:
cause
- the cause exception to wrap or null
getCause
public Throwable getCause()
- Returns the chained
Throwable
object that was the cause
of this exception.
- Overrides:
getCause
in class Throwable
- Returns:
- the cause exception or null if nonexistent