Package org.forgerock.openam.idrepo.ldap
Class IdentityNotFoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.sun.identity.idm.IdRepoException
-
- org.forgerock.openam.idrepo.ldap.IdentityNotFoundException
-
- All Implemented Interfaces:
L10NMessage,Serializable
public class IdentityNotFoundException extends IdRepoException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IdentityNotFoundException(String rbName, String errorCode, org.forgerock.opendj.ldap.ResultCode ldapResultCode, Object[] args)This constructor is used to pass the localized error message At this level, the locale of the caller is not known and it is not possible to throw localized error message at this level.
-
Method Summary
-
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
-
-
-
-
Constructor Detail
-
IdentityNotFoundException
public IdentityNotFoundException(String rbName, String errorCode, org.forgerock.opendj.ldap.ResultCode ldapResultCode, Object[] args)
This constructor is used to pass the localized error message At this level, the locale of the caller is not known and it is not possible to throw localized error message at this level. Instead this constructor provides Resource Bundle name ,error code and LDAP Result Code ( in case of LDAP related exception for correctly locating the error message. The defaultgetMessage()will always return English messages only. This is in consistent with current JRE.- Parameters:
rbName- Resource bundle Name to be used for getting localized error message.errorCode- Key to resource bundle. You can useResourceBundle rb = ResourceBunde.getBundle(rbName,locale); String localizedStr = rb.getString(errorCode).ldapResultCode- ldap result codeargs- arguments to message. If it is not present pass the as null.
-
-