public final class UndeclaredNamespaceException extends RuntimeException
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.
| Constructor and Description |
|---|
UndeclaredNamespaceException(String uri)
Creates a new exception for undeclared namespaces.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UndeclaredNamespaceException(String uri)
uri - The namespace URI that has not been declared.Copyright © 2007-2022. All Rights Reserved.