Java Doc for DOMException.java in  » 6.0-JDK-Core » w3c » org » w3c » dom » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » w3c » org.w3c.dom 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.lang.RuntimeException
            org.w3c.dom.DOMException

DOMException
public class DOMException extends RuntimeException (Code)
DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impossible to perform (either for logical reasons, because data is lost, or because the implementation has become unstable). In general, DOM methods return specific error values in ordinary processing situations, such as out-of-bound errors when using NodeList.

Implementations should raise other exceptions under other circumstances. For example, implementations should raise an implementation-dependent exception if a null argument is passed when null was not expected.

Some languages and object systems do not support the concept of exceptions. For such systems, error conditions may be indicated using native error reporting mechanisms. For some bindings, for example, methods may return error codes similar to those listed in the corresponding method descriptions.

See also the Document Object Model (DOM) Level 3 Core Specification.



Field Summary
final public static  shortDOMSTRING_SIZE_ERR
     If the specified range of text does not fit into a DOMString.
final public static  shortHIERARCHY_REQUEST_ERR
     If any Node is inserted somewhere it doesn't belong.
final public static  shortINDEX_SIZE_ERR
     If index or size is negative, or greater than the allowed value.
final public static  shortINUSE_ATTRIBUTE_ERR
     If an attempt is made to add an attribute that is already in use elsewhere.
final public static  shortINVALID_ACCESS_ERR
     If a parameter or an operation is not supported by the underlying object.
final public static  shortINVALID_CHARACTER_ERR
     If an invalid or illegal character is specified, such as in an XML name.
final public static  shortINVALID_MODIFICATION_ERR
     If an attempt is made to modify the type of the underlying object.
final public static  shortINVALID_STATE_ERR
     If an attempt is made to use an object that is not, or is no longer, usable.
final public static  shortNAMESPACE_ERR
     If an attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
final public static  shortNOT_FOUND_ERR
     If an attempt is made to reference a Node in a context where it does not exist.
final public static  shortNOT_SUPPORTED_ERR
     If the implementation does not support the requested type of object or operation.
final public static  shortNO_DATA_ALLOWED_ERR
     If data is specified for a Node which does not support data.
final public static  shortNO_MODIFICATION_ALLOWED_ERR
     If an attempt is made to modify an object where modifications are not allowed.
final public static  shortSYNTAX_ERR
     If an invalid or illegal string is specified.
final public static  shortTYPE_MISMATCH_ERR
     If the type of an object is incompatible with the expected type of the parameter associated to the object.
final public static  shortVALIDATION_ERR
     If a call to a method such as insertBefore or removeChild would make the Node invalid with respect to "partial validity", this exception would be raised and the operation would not be done.
final public static  shortWRONG_DOCUMENT_ERR
     If a Node is used in a different document than the one that created it (that doesn't support it).
public  shortcode
    
final static  longserialVersionUID
    

Constructor Summary
public  DOMException(short code, String message)
    


Field Detail
DOMSTRING_SIZE_ERR
final public static short DOMSTRING_SIZE_ERR(Code)
If the specified range of text does not fit into a DOMString.



HIERARCHY_REQUEST_ERR
final public static short HIERARCHY_REQUEST_ERR(Code)
If any Node is inserted somewhere it doesn't belong.



INDEX_SIZE_ERR
final public static short INDEX_SIZE_ERR(Code)
If index or size is negative, or greater than the allowed value.



INUSE_ATTRIBUTE_ERR
final public static short INUSE_ATTRIBUTE_ERR(Code)
If an attempt is made to add an attribute that is already in use elsewhere.



INVALID_ACCESS_ERR
final public static short INVALID_ACCESS_ERR(Code)
If a parameter or an operation is not supported by the underlying object.
since:
   DOM Level 2



INVALID_CHARACTER_ERR
final public static short INVALID_CHARACTER_ERR(Code)
If an invalid or illegal character is specified, such as in an XML name.



INVALID_MODIFICATION_ERR
final public static short INVALID_MODIFICATION_ERR(Code)
If an attempt is made to modify the type of the underlying object.
since:
   DOM Level 2



INVALID_STATE_ERR
final public static short INVALID_STATE_ERR(Code)
If an attempt is made to use an object that is not, or is no longer, usable.
since:
   DOM Level 2



NAMESPACE_ERR
final public static short NAMESPACE_ERR(Code)
If an attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
since:
   DOM Level 2



NOT_FOUND_ERR
final public static short NOT_FOUND_ERR(Code)
If an attempt is made to reference a Node in a context where it does not exist.



NOT_SUPPORTED_ERR
final public static short NOT_SUPPORTED_ERR(Code)
If the implementation does not support the requested type of object or operation.



NO_DATA_ALLOWED_ERR
final public static short NO_DATA_ALLOWED_ERR(Code)
If data is specified for a Node which does not support data.



NO_MODIFICATION_ALLOWED_ERR
final public static short NO_MODIFICATION_ALLOWED_ERR(Code)
If an attempt is made to modify an object where modifications are not allowed.



SYNTAX_ERR
final public static short SYNTAX_ERR(Code)
If an invalid or illegal string is specified.
since:
   DOM Level 2



TYPE_MISMATCH_ERR
final public static short TYPE_MISMATCH_ERR(Code)
If the type of an object is incompatible with the expected type of the parameter associated to the object.
since:
   DOM Level 3



VALIDATION_ERR
final public static short VALIDATION_ERR(Code)
If a call to a method such as insertBefore or removeChild would make the Node invalid with respect to "partial validity", this exception would be raised and the operation would not be done. This code is used in [DOM Level 3 Validation] . Refer to this specification for further information.
since:
   DOM Level 3



WRONG_DOCUMENT_ERR
final public static short WRONG_DOCUMENT_ERR(Code)
If a Node is used in a different document than the one that created it (that doesn't support it).



code
public short code(Code)



serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
DOMException
public DOMException(short code, String message)(Code)






Methods inherited from java.lang.Throwable
native public synchronized Throwable fillInStackTrace()(Code)(Java Doc)
public Throwable getCause()(Code)(Java Doc)
public String getLocalizedMessage()(Code)(Java Doc)
public String getMessage()(Code)(Java Doc)
public StackTraceElement[] getStackTrace()(Code)(Java Doc)
public synchronized Throwable initCause(Throwable cause)(Code)(Java Doc)
public void printStackTrace()(Code)(Java Doc)
public void printStackTrace(PrintStream s)(Code)(Java Doc)
public void printStackTrace(PrintWriter s)(Code)(Java Doc)
public void setStackTrace(StackTraceElement[] stackTrace)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.