Serializable
public class WriteAbortedException extends ObjectStreamException
Modifier and Type | Field | Description |
---|---|---|
Exception |
detail |
Deprecated. This field predates the general-purpose exception chaining facility. |
Constructor | Description |
---|---|
WriteAbortedException |
Constructs a WriteAbortedException with a string describing the exception and the exception causing the abort. |
Modifier and Type | Method | Description |
---|---|---|
Throwable |
getCause() |
Returns the exception that terminated the operation (the cause). |
String |
getMessage() |
Produce the message and include the message from the nested exception, if there is one. |
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
@Deprecated(since="17") public Exception detail
Throwable.getCause()
method is now the preferred means of obtaining this information.public WriteAbortedException(String s, Exception ex)
s
- String describing the exception.ex
- Exception causing the abort.public String getMessage()
getMessage
in class Throwable
Throwable
instance (which may be null
).public Throwable getCause()
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/io/WriteAbortedException.html