org.w3c.dom.ls
Class LSException

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.lang.Throwable sample code for java.lang.Throwable definition code for java.lang.Throwable 
      extended by java.lang.Exception sample code for java.lang.Exception definition code for java.lang.Exception 
          extended by java.lang.RuntimeException sample code for java.lang.RuntimeException definition code for java.lang.RuntimeException 
              extended by org.w3c.dom.ls.LSException
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable

public class LSException
extends RuntimeException sample code for java.lang.RuntimeException definition code for java.lang.RuntimeException

Parser or write operations may throw an LSException if the processing is stopped. The processing can be stopped due to a DOMError with a severity of DOMError.SEVERITY_FATAL_ERROR or a non recovered DOMError.SEVERITY_ERROR, or if DOMErrorHandler.handleError() returned false.

Note: As suggested in the definition of the constants in the DOMError interface, a DOM implementation may choose to continue after a fatal error, but the resulting DOM tree is then implementation dependent.

See also the Document Object Model (DOM) Level 3 Load and Save Specification.

See Also:
Serialized Form

Field Summary
 short code sample code for org.w3c.dom.ls.LSException.code definition code for org.w3c.dom.ls.LSException.code
           
static short PARSE_ERR sample code for org.w3c.dom.ls.LSException.PARSE_ERR definition code for org.w3c.dom.ls.LSException.PARSE_ERR
          If an attempt was made to load a document, or an XML Fragment, using LSParser and the processing has been stopped.
static short SERIALIZE_ERR sample code for org.w3c.dom.ls.LSException.SERIALIZE_ERR definition code for org.w3c.dom.ls.LSException.SERIALIZE_ERR
          If an attempt was made to serialize a Node using LSSerializer and the processing has been stopped.
 
Constructor Summary
LSException sample code for org.w3c.dom.ls.LSException.LSException(short, java.lang.String) definition code for org.w3c.dom.ls.LSException.LSException(short, java.lang.String) (short code, String sample code for java.lang.String definition code for java.lang.String  message)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable sample code for java.lang.Throwable definition code for java.lang.Throwable
fillInStackTrace sample code for java.lang.Throwable.fillInStackTrace() definition code for java.lang.Throwable.fillInStackTrace() , getCause sample code for java.lang.Throwable.getCause() definition code for java.lang.Throwable.getCause() , getLocalizedMessage sample code for java.lang.Throwable.getLocalizedMessage() definition code for java.lang.Throwable.getLocalizedMessage() , getMessage sample code for java.lang.Throwable.getMessage() definition code for java.lang.Throwable.getMessage() , getStackTrace sample code for java.lang.Throwable.getStackTrace() definition code for java.lang.Throwable.getStackTrace() , initCause sample code for java.lang.Throwable.initCause(java.lang.Throwable) definition code for java.lang.Throwable.initCause(java.lang.Throwable) , printStackTrace sample code for java.lang.Throwable.printStackTrace() definition code for java.lang.Throwable.printStackTrace() , printStackTrace sample code for java.lang.Throwable.printStackTrace(java.io.PrintStream) definition code for java.lang.Throwable.printStackTrace(java.io.PrintStream) , printStackTrace sample code for java.lang.Throwable.printStackTrace(java.io.PrintWriter) definition code for java.lang.Throwable.printStackTrace(java.io.PrintWriter) , setStackTrace sample code for java.lang.Throwable.setStackTrace(java.lang.StackTraceElement[]) definition code for java.lang.Throwable.setStackTrace(java.lang.StackTraceElement[]) , toString sample code for java.lang.Throwable.toString() definition code for java.lang.Throwable.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

code sample code for org.w3c.dom.ls.LSException.code

public short code

PARSE_ERR sample code for org.w3c.dom.ls.LSException.PARSE_ERR

public static final short PARSE_ERR
If an attempt was made to load a document, or an XML Fragment, using LSParser and the processing has been stopped.

See Also:
Constant Field Values

SERIALIZE_ERR sample code for org.w3c.dom.ls.LSException.SERIALIZE_ERR

public static final short SERIALIZE_ERR
If an attempt was made to serialize a Node using LSSerializer and the processing has been stopped.

See Also:
Constant Field Values
Constructor Detail

LSException sample code for org.w3c.dom.ls.LSException(short, java.lang.String) definition code for org.w3c.dom.ls.LSException(short, java.lang.String)

public LSException(short code,
                   String sample code for java.lang.String definition code for java.lang.String  message)