org.ozoneDB.xml.dom
Class DOMExceptionImpl

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.w3c.dom.DOMException
                          |
                          +--org.ozoneDB.xml.dom.DOMExceptionImpl
All Implemented Interfaces:
java.io.Serializable

public final class DOMExceptionImpl
extends org.w3c.dom.DOMException

Implements DOMException for throwing a RuntimeException. Message specified as one of several predefined error codes plus an optional description string. Throwable.getMessage() returns textual description of error code.

See DOMException for list of supported error codes.

Version:
$Revision: 1.1 $ $Date: 2001/12/18 11:03:24 $
Author:
Assaf Arkin
See Also:
DOMException, Serialized Form

Field Summary
static short PDOM_ERR
           
 
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
 
Constructor Summary
DOMExceptionImpl(short code)
          Create new DOMException with specified code.
DOMExceptionImpl(short code, java.lang.String message)
          Create new DOMException with specified code and message.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PDOM_ERR

public static final short PDOM_ERR
See Also:
Constant Field Values
Constructor Detail

DOMExceptionImpl

public DOMExceptionImpl(short code)
Create new DOMException with specified code. Message will contain textual description of code.

Parameters:
code - DOMException error code

DOMExceptionImpl

public DOMExceptionImpl(short code,
                        java.lang.String message)
Create new DOMException with specified code and message. Message will contain textual description of code and optional message text.

Parameters:
code - DOMException error code
message - Optional message text
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable


Copyright © 2002 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.