|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.w3c.dom.ls.LSException
public class LSException
如果处理停止,解析或写操作可以抛出 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》。
| 字段摘要 | |
|---|---|
short |
code
|
static short |
PARSE_ERR
如果尝试使用 LSParser 加载文档或 XML 片段并且处理已经停止。 |
static short |
SERIALIZE_ERR
如果尝试使用 LSSerializer 序列化 Node 并且处理已经停止。 |
| 构造方法摘要 | |
|---|---|
LSException(short code,
String message)
|
|
| 方法摘要 |
|---|
| 从类 java.lang.Throwable 继承的方法 |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
public short code
public static final short PARSE_ERR
LSParser 加载文档或 XML 片段并且处理已经停止。
public static final short SERIALIZE_ERR
LSSerializer 序列化 Node 并且处理已经停止。
| 构造方法详细信息 |
|---|
public LSException(short code,
String message)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。