Class IllegalNameException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.jcr.RepositoryException
              extended by org.apache.jackrabbit.spi.commons.conversion.NameException
                  extended by org.apache.jackrabbit.spi.commons.conversion.IllegalNameException
All Implemented Interfaces:

public class IllegalNameException
extends NameException

Thrown when an illegal JCR name string is encountered. This exception is thrown when attempting to parse a JCR name string that does not match the JCR name syntax, or is otherwise not a legal name. Note that an NamespaceException is thrown if the prefix of the JCR name string is syntactically valid but not bound to any namespace.

See the section 4.6 of the JCR 1.0 specification for details of the JCR name syntax.

See Also:
Serialized Form

Field Summary
Fields inherited from class javax.jcr.RepositoryException
Constructor Summary
IllegalNameException(String message)
          Creates an IllegalNameException with the given error message.
IllegalNameException(String message, Throwable rootCause)
          Creates an IllegalNameException with the given error message and root cause exception.
Method Summary
Methods inherited from class javax.jcr.RepositoryException
getCause, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace
Methods inherited from class java.lang.Throwable
fillInStackTrace, getStackTrace, initCause, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public IllegalNameException(String message)
Creates an IllegalNameException with the given error message.

message - error message


public IllegalNameException(String message,
                            Throwable rootCause)
Creates an IllegalNameException with the given error message and root cause exception.

message - error message
rootCause - root cause exception

Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.