nu.xom
Class NamespaceConflictException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bynu.xom.XMLException
                  extended bynu.xom.WellformednessException
                      extended bynu.xom.NamespaceConflictException
All Implemented Interfaces:
java.io.Serializable

public class NamespaceConflictException
extends WellformednessException

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.

Version:
1.0d23
Author:
Elliotte Rusty Harold
See Also:
Serialized Form

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

NamespaceConflictException

public NamespaceConflictException(java.lang.String message)

Creates a new NamespaceException with a detail message.

Parameters:
message - indicates the specific problem

NamespaceConflictException

public NamespaceConflictException(java.lang.String message,
                                  java.lang.Throwable cause)

Creates a new NamespaceException with a detail message and an underlying root cause.

Parameters:
message - indicates the specific problem
cause - the original cause of this exception


Copyright 2002-2004 Elliotte Rusty Harold
elharo@metalab.unc.edu