public interface DOMError
DOMError是描述错误的界面。
| Modifier and Type | Field and Description |
|---|---|
static short |
SEVERITY_ERROR
由
DOMError的错误的
DOMError是错误的。
|
static short |
SEVERITY_FATAL_ERROR
由
DOMError描述的错误的
DOMError是致命的错误。
|
static short |
SEVERITY_WARNING
DOMError描述的错误的
DOMError是警告。
|
| Modifier and Type | Method and Description |
|---|---|
DOMLocator |
getLocation()
错误的位置。
|
String |
getMessage()
描述发生错误的实现特定字符串。
|
Object |
getRelatedData()
相关数据相关
DOMError.type如有。
|
Object |
getRelatedException()
相关的平台依赖异常如果有的话。
|
short |
getSeverity()
错误的严重性,无论是
SEVERITY_WARNING ,
SEVERITY_ERROR ,或
SEVERITY_FATAL_ERROR 。
|
String |
getType()
A
DOMString指出在
relatedData中预期哪些相关数据。
|
static final short SEVERITY_WARNING
DOMError是警告。
A SEVERITY_WARNING不会导致处理停止,除非DOMErrorHandler.handleError()返回false 。
static final short SEVERITY_ERROR
DOMError的错误的DOMError是错误的。
A SEVERITY_ERROR可能不会导致处理停止,如果错误可以恢复,除非DOMErrorHandler.handleError()返回false 。
static final short SEVERITY_FATAL_ERROR
DOMError描述的错误的DOMError是致命的错误。
A SEVERITY_FATAL_ERROR将导致正常处理停止。
DOMErrorHandler.handleError()的返回值将被忽略,除非实现选择继续,在这种情况下行为将变得未定义。
short getSeverity()
SEVERITY_WARNING ,
SEVERITY_ERROR ,或
SEVERITY_FATAL_ERROR 。
String getMessage()
String getType()
DOMString指出在relatedData中预期哪些相关数据。
用户应参考错误的规范,以查找其DOMString类型和relatedData定义(如果有的话)。
注意:例如,当“split-cdata-sections”参数正在使用时, Document.normalizeDocument()会生成警告。 因此,该方法产生一个SEVERITY_WARNING与type "cdata-sections-splitted"和第一CDATASection节点按文档顺序从分割所得的由返回relatedData属性。
Object getRelatedException()
Object getRelatedData()
DOMError.type如有。
DOMLocator getLocation()
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.