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.WriteAbortedExceptionpublic 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 ; } |