com.topologi.diffx.xml
Class UndeclaredNamespaceException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.topologi.diffx.xml.UndeclaredNamespaceException
All Implemented Interfaces:
Serializable

public final class UndeclaredNamespaceException
extends RuntimeException

Class of exceptions thrown when a namespace is being used without being declared.

To avoid this exception being thrown, the namespace URI must be explicitely associated with a prefix before a node belonging to this namespace is serialiased. Namespaces can be declared using the XMLWriter.setPrefixMapping(String, String) method.

Version:
10 December 2004
Author:
Christophe Lauret (Allette Systems)
See Also:
Serialized Form

Constructor Summary
UndeclaredNamespaceException(String uri)
          Creates a new exception for undeclared namespaces.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UndeclaredNamespaceException

public UndeclaredNamespaceException(String uri)
Creates a new exception for undeclared namespaces.

Parameters:
uri - The namespace URI that has not been declared.