public class WriteAbortedException extends ObjectStreamException
ObjectInputStream.readObject()
method has detected
an exception marker in the input stream. This marker indicates that exception
occurred when the object was serialized, and this marker was inserted instead
of the original object. It is a way to "propagate" an exception from the code
that attempted to write the object to the code that is attempting to read the
object.Modifier and Type | Field and Description |
---|---|
Exception |
detail
The exception that occured when writeObject() was attempting to serialize
the object.
|
Constructor and Description |
---|
WriteAbortedException(String detailMessage,
Exception rootCause)
Constructs a new
WriteAbortedException with its stack trace,
detail message and the exception which caused the underlying problem when
serializing the object filled in. |
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Gets the cause of this exception or
null if there is no cause. |
String |
getMessage()
Gets the extra information message which was provided when this exception
was created.
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public Exception detail
public WriteAbortedException(String detailMessage, Exception rootCause)
WriteAbortedException
with its stack trace,
detail message and the exception which caused the underlying problem when
serializing the object filled in.detailMessage
- the detail message for this exception.rootCause
- the exception that was thrown when serializing the object.public String getMessage()
null
if no message was provided at creation
time.getMessage
in class Throwable