Class UndeclaredNamespaceException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.topologi.diffx.xml.UndeclaredNamespaceException
All Implemented Interfaces:

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.

14 May 2005
Christophe Lauret (Allette Systems)
See Also:
Serialized Form

Constructor Summary
UndeclaredNamespaceException(String uri)
          Creates a new exception for undeclared namespaces.
Method Summary
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


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

uri - The namespace URI that has not been declared.