Class UndeclaredNamespaceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.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:
14 May 2005
See Also:
  • Field Details

    • serialVersionUID

      static final long serialVersionUID
      Version number for the serialised class.
      See Also:
  • Constructor Details

    • UndeclaredNamespaceException

      public UndeclaredNamespaceException(String uri)
      Creates a new exception for undeclared namespaces.
      Parameters:
      uri - The namespace URI that has not been declared.