Name
WriteAbortedException
Synopsis
Thrown
when reading a
stream
of data that is incomplete because an exception was thrown while it
was being written. The detail
field may contain
the exception that terminated the output stream. In Java 1.4 and
later, this exception can also be obtained with the standard
Throwable
getCause( )
method. The getMessage(
)
method has been overridden to include the message of this
detail
exception, if any.
Figure 9-64. java.io.WriteAbortedException
public class WriteAbortedException extends ObjectStreamException { // Public Constructors public WriteAbortedException(String s, Exception ex); // Public Methods Overriding Throwable 1.4 public Throwable getCause( ); public String getMessage( ); // Public Instance Fields public Exception detail; }
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.