org.opends.server.admin.client
Class IllegalManagedObjectNameException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.opends.server.types.OpenDsException
              extended by org.opends.server.admin.AdminException
                  extended by org.opends.server.admin.OperationsException
                      extended by org.opends.server.admin.client.IllegalManagedObjectNameException
All Implemented Interfaces:
java.io.Serializable

public class IllegalManagedObjectNameException
extends OperationsException

Thrown when an attempt is made to create a new managed object with an illegal name.

This exception can occur when a new managed object is given a name which is either an empty string, a string containing just white-spaces, or a string which is invalid according to the managed object's naming property (if it has one).

See Also:
Serialized Form

Constructor Summary
IllegalManagedObjectNameException(java.lang.String illegalName)
          Create a new illegal name exception and no naming property definition.
IllegalManagedObjectNameException(java.lang.String illegalName, PropertyDefinition<?> namingPropertyDefinition)
          Create a new illegal name exception and a naming property definition.
 
Method Summary
 java.lang.String getIllegalName()
          Get the illegal managed object name.
 PropertyDefinition<?> getNamingPropertyDefinition()
          Get the naming property definition if applicable.
 
Methods inherited from class org.opends.server.types.OpenDsException
getMessageObject
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalManagedObjectNameException

public IllegalManagedObjectNameException(java.lang.String illegalName)
Create a new illegal name exception and no naming property definition.

Parameters:
illegalName - The illegal managed object name.

IllegalManagedObjectNameException

public IllegalManagedObjectNameException(java.lang.String illegalName,
                                         PropertyDefinition<?> namingPropertyDefinition)
Create a new illegal name exception and a naming property definition.

Parameters:
illegalName - The illegal managed object name.
namingPropertyDefinition - The naming property definition.
Method Detail

getIllegalName

public java.lang.String getIllegalName()
Get the illegal managed object name.

Returns:
Returns the illegal managed object name.

getNamingPropertyDefinition

public PropertyDefinition<?> getNamingPropertyDefinition()
Get the naming property definition if applicable.

Returns:
Returns naming property definition, or null if none was specified.