org.apache.crimson.tree
Class DomEx

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.w3c.dom.DOMException
                  extended byorg.apache.crimson.tree.DomEx
All Implemented Interfaces:
Serializable

class DomEx
extends org.w3c.dom.DOMException

Concrete class for DOM exceptions, associating standard messages with DOM error codes.

Author:
David Brownell

Field Summary
 
Fields inherited from class org.w3c.dom.DOMException
code, DOMSTRING_SIZE_ERR, HIERARCHY_REQUEST_ERR, INDEX_SIZE_ERR, INUSE_ATTRIBUTE_ERR, INVALID_ACCESS_ERR, INVALID_CHARACTER_ERR, INVALID_MODIFICATION_ERR, INVALID_STATE_ERR, NAMESPACE_ERR, NO_DATA_ALLOWED_ERR, NO_MODIFICATION_ALLOWED_ERR, NOT_FOUND_ERR, NOT_SUPPORTED_ERR, SYNTAX_ERR, WRONG_DOCUMENT_ERR
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
DomEx(Locale locale, short code)
          Creates a DOM exception which provides a standard message corresponding to the given error code and using the specified locale for the message.
DomEx(short code)
          Creates a DOM exception which provides a standard message corresponding to the given error code, using the default locale for the message.
 
Method Summary
(package private) static String messageString(Locale locale, int code)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DomEx

public DomEx(short code)
Creates a DOM exception which provides a standard message corresponding to the given error code, using the default locale for the message.


DomEx

public DomEx(Locale locale,
             short code)
Creates a DOM exception which provides a standard message corresponding to the given error code and using the specified locale for the message.

Method Detail

messageString

static String messageString(Locale locale,
                            int code)