- java.lang.Object
-  
      - java.lang.Throwable
-  
        - java.lang.Exception
-  
          - java.lang.RuntimeException
-  
            - org.w3c.dom.ls.LSException
 
 
 
 
-  
       - All Implemented Interfaces:
-  
         Serializable
 
 
 public class LSException extends RuntimeException 如果处理停止,解析器或写入操作可能会抛出LSException。 该处理可由于被停止的DOMError用的严重性DOMError.SEVERITY_FATAL_ERROR或非恢复DOMError.SEVERITY_ERROR,或者如果DOMErrorHandler.handleError()返回false。注意:如在 DOMError接口的常量定义中所建议的DOMError,一个DOM实现可能会在一个致命错误之后选择继续,但是所得到的DOM树就是依赖于实现的。另见Document Object Model (DOM) Level 3 Load and Save Specification 。 - 从以下版本开始:
- 1.5
- 另请参见:
- Serialized Form
 
-  
        
       -  
             Field SummaryFields Modifier and Type Field 描述 shortcodestatic shortPARSE_ERR如果尝试使用LSParser加载文档或XML片段,并且处理已停止。static shortSERIALIZE_ERR如果试图序列化Node使用LSSerializer和处理已经停止。
 -  
             构造方法摘要构造方法 Constructor 描述 LSException(short code, String message)
 -  
             方法摘要-  
               Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 -  
               Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
-  
               
 
-  
             
-  
        
       -  
             字段详细信息-  codepublic short code 
 -  PARSE_ERRpublic static final short PARSE_ERR 如果尝试使用LSParser加载文档或XML片段,并且处理已停止。- 另请参见:
- Constant Field Values
 
 -  SERIALIZE_ERRpublic static final short SERIALIZE_ERR 如果试图序列化Node使用LSSerializer和处理已经停止。- 另请参见:
- Constant Field Values
 
 
-  
 -  
             构造方法详细信息-  LSExceptionpublic LSException(short code, String message)
 
-  
 
-