Package com.sun.identity.idm
Class IdRepoDuplicateObjectException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sun.identity.idm.IdRepoException
com.sun.identity.idm.IdRepoDuplicateObjectException
- All Implemented Interfaces:
com.sun.identity.shared.locale.L10NMessage,Serializable
An exception type thrown when an
IdRepo is asked to
create an object with a name that is already used.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionidentityOfTypeAlreadyExists(String name, String type) Create an instance using the localizedIdRepoErrorCode.IDENTITY_OF_TYPE_ALREADY_EXISTSerror message populated with the provided name and type.nameAlreadyExists(String name) Create an instance using the localizedIdRepoErrorCode.NAME_ALREADY_EXISTSerror message populated with the provided name.Methods inherited from class com.sun.identity.idm.IdRepoException
getConstraintViolationDetails, getErrorCode, getL10NMessage, getLDAPErrorCode, getLdapErrorIntCode, getMessage, getMessageArgs, getResourceBundleName, setLDAPErrorCode, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Method Details
-
nameAlreadyExists
Create an instance using the localizedIdRepoErrorCode.NAME_ALREADY_EXISTSerror message populated with the provided name.- Parameters:
name- An identity name that is already taken- Returns:
- exception with localized error message
-
identityOfTypeAlreadyExists
Create an instance using the localizedIdRepoErrorCode.IDENTITY_OF_TYPE_ALREADY_EXISTSerror message populated with the provided name and type.- Parameters:
name- An identity name that is already takentype- The identity type- Returns:
- exception with localized error message
-