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
public final 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
Constructors Constructor Description IllegalManagedObjectNameException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getIllegalName()
Get the illegal managed object name.PropertyDefinition<?>
getNamingPropertyDefinition()
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 Detail
-
IllegalManagedObjectNameException
public IllegalManagedObjectNameException(String illegalName)
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 Detail
-
getIllegalName
public 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.
-
-