Top Description Fields Constructors Methods
java.io

public Class WriteAbortedException

extends ObjectStreamException
Class Inheritance

Signals that one of the ObjectStreamExceptions was thrown during a write operation. Thrown during a read operation when one of the ObjectStreamExceptions was thrown during a write operation. The exception that terminated the write can be found in the detail field. The stream is reset to its initial state and all references to objects already deserialized are discarded.
Since
1.1

Field Summary

Modifier and TypeField and Description
public Exception
detail

Deprecated since 17. This field predates the general-purpose exception chaining facility.
Exception that was caught while writing the ObjectStream.
private static final long

Constructor Summary

AccessConstructor and Description
public
WriteAbortedException(String
String describing the exception.
s
,
Exception
Exception causing the abort.
ex
)

Constructs a WriteAbortedException with a string describing the exception and the exception causing the abort.

Method Summary

Modifier and TypeMethod and Description
public Throwable

Returns:

the exception that terminated the operation (the cause), which may be null.
getCause
()

Overrides java.lang.Throwable.getCause.

Returns the exception that terminated the operation (the cause).

public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Produce the message and include the message from the nested exception, if there is one.

Field Detail

detailback to summary
public Exception detail

Deprecated

since 17.

This field predates the general-purpose exception chaining facility. The Throwable#getCause() method is now the preferred means of obtaining this information.

Exception that was caught while writing the ObjectStream.

Annotations
@Deprecated
since:17
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.io.ObjectStreamException.serialVersionUID.

Annotations
@Serial

Constructor Detail

WriteAbortedExceptionback to summary
public WriteAbortedException(String s, Exception ex)

Constructs a WriteAbortedException with a string describing the exception and the exception causing the abort.

Parameters
s:String

String describing the exception.

ex:Exception

Exception causing the abort.

Annotations
@SuppressWarnings:this-escape

Method Detail

getCauseback to summary
public Throwable getCause()

Overrides java.lang.Throwable.getCause.

Returns the exception that terminated the operation (the cause).

Returns:Throwable

the exception that terminated the operation (the cause), which may be null.

Annotations
@Override
Since
1.4
getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Produce the message and include the message from the nested exception, if there is one.

Returns:String

Doc from java.lang.Throwable.getMessage.

the detail message string of this Throwable instance (which may be null).