public class LSException extends RuntimeException
LSException
如果处理停止。可以停止该处理由于具有严重的
DOMError.SEVERITY_FATAL_ERROR
或非恢复
DOMError.SEVERITY_ERROR
DOMError
,或者如果
DOMErrorHandler.handleError()
false
注:建议定义的常量在DOMError
接口,DOM实现可能会选择一个致命错误后继续,但由此产生的DOM树,然后实现依赖。
又见Document Object Model (DOM) Level 3 Load and Save Specification。
返回。Modifier and Type | Field and Description |
---|---|
short |
code |
static short |
PARSE_ERR
如果试图加载一个文件,或一个XML片段,用
LSParser 和处理已停止。
|
static short |
SERIALIZE_ERR
如果试图将
Node 使用
LSSerializer 和处理已停止。
|
Constructor and Description |
---|
LSException(short code, String message) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public short code
public static final short PARSE_ERR
LSParser
和处理已停止。
public static final short SERIALIZE_ERR
Node
使用
LSSerializer
和处理已停止。
public LSException(short code, String message)
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.