Class IllegalManagedObjectNameException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.forgerock.opendj.config.AdminException
org.forgerock.opendj.config.OperationsException
org.forgerock.opendj.config.client.IllegalManagedObjectNameException
- All Implemented Interfaces:
Serializable
,LocalizableException
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:
-
Constructor Summary
ConstructorDescriptionIllegalManagedObjectNameException
(String illegalName) Create a new illegal name exception and no naming property definition.IllegalManagedObjectNameException
(String illegalName, PropertyDefinition<?> namingPropertyDefinition) Create a new illegal name exception and a naming property definition. -
Method Summary
Modifier and TypeMethodDescriptionGet the illegal managed object name.Get the naming property definition if applicable.Methods inherited from class org.forgerock.opendj.config.AdminException
getMessageObject
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IllegalManagedObjectNameException
Create a new illegal name exception and no naming property definition.- Parameters:
illegalName
- The illegal managed object name.
-
IllegalManagedObjectNameException
public IllegalManagedObjectNameException(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 Details
-
getIllegalName
Get the illegal managed object name.- Returns:
- Returns the illegal managed object name.
-
getNamingPropertyDefinition
Get the naming property definition if applicable.- Returns:
- Returns naming property definition, or
null
if none was specified.
-