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
@SupportedAll public class IdRepoDuplicateObjectException extends IdRepoException
An exception type thrown when anIdRepois asked to create an object with a name that is already used.- See Also:
 - Serialized Form
 
 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IdRepoDuplicateObjectExceptionidentityOfTypeAlreadyExists(String name, String type)Create an instance using the localizedIdRepoErrorCode.IDENTITY_OF_TYPE_ALREADY_EXISTSerror message populated with the provided name and type.static IdRepoDuplicateObjectExceptionnameAlreadyExists(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, toString 
- 
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace 
 - 
 
 - 
 
- 
- 
Method Detail
- 
nameAlreadyExists
public static IdRepoDuplicateObjectException nameAlreadyExists(String name)
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
public static IdRepoDuplicateObjectException identityOfTypeAlreadyExists(String name, String type)
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
 
 
 - 
 
 -