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 anIdRepo
is 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 IdRepoDuplicateObjectException
identityOfTypeAlreadyExists(String name, String type)
Create an instance using the localizedIdRepoErrorCode.IDENTITY_OF_TYPE_ALREADY_EXISTS
error message populated with the provided name and type.static IdRepoDuplicateObjectException
nameAlreadyExists(String name)
Create an instance using the localizedIdRepoErrorCode.NAME_ALREADY_EXISTS
error 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_EXISTS
error 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_EXISTS
error 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
-
-