|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
nu.xom.XMLException
nu.xom.WellformednessException
nu.xom.NamespaceConflictException
A NamespaceException
indicates some violation of the
rules of Namespaces in XML. All namespace exceptions are not
violations of pure XML 1.0 without namespaces. For example,
trying to set the name of an element to "98degrees" throws an
IllegalNameException
because it violates XML 1.0
with or without namespaces. However, setting the same element's
name to test:test:degrees
throws a
NamespaceException
because
test:test:degrees
is a legal name in XML 1.0 but not a
legal name in XML 1.0 + namespaces.
The xml
prefix is not treated specially on attributes
like xml:base
and xml:space
.
If used, these attributes must be specified
like any other attribute in a namespace.
Constructor Summary | |
NamespaceConflictException(java.lang.String message)
Creates a new NamespaceException
with a detail message. |
|
NamespaceConflictException(java.lang.String message,
java.lang.Throwable cause)
Creates a new NamespaceException
with a detail message and an underlying root cause. |
Methods inherited from class nu.xom.XMLException |
getCause, initCause |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NamespaceConflictException(java.lang.String message)
Creates a new NamespaceException
with a detail message.
message
- indicates the specific problempublic NamespaceConflictException(java.lang.String message, java.lang.Throwable cause)
Creates a new NamespaceException
with a detail message and an underlying root cause.
message
- indicates the specific problemcause
- the original cause of this exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |