public class WriteAbortedException extends ObjectStreamException
在1.4版本中,该异常已被更新以符合通用异常链机制。“异常导致中止”,在施工时提供通过公共detail
领域现在被称为原因访问,并可以通过Throwable.getCause()
方法访问,以及前述的“传统领域。”
Constructor and Description |
---|
WriteAbortedException(String s, 异常 ex)
构建一个与描述异常导致中止异常字符串writeabortedexception。
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
返回异常终止操作(的原因)。
|
String |
getMessage()
产生消息,并包括嵌套异常的消息,如果有一个。
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 异常 detail
这场早于通用异常链设施。现在的Throwable.getCause()
方法获取这一信息的首选方式。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.