|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception com.sun.identity.idm.IdRepoException
The exception class whose instance is thrown if there is any error
during the operation of objects of the com.sun.identity.sms
package. This class maps the exception that occurred at a lower level to a
high level error. Using the exception status code
getExceptionCode()
the errors are categorized as a
ABORT
, RETRY
, CONFIG_PROBLEM
or
LDAP_OP_FAILED
(typically a bug).
Constructor Summary | |
IdRepoException()
|
|
IdRepoException(java.lang.String msg)
|
|
IdRepoException(java.lang.String msg,
java.lang.String errorCode)
|
|
IdRepoException(java.lang.String rbName,
java.lang.String errorCode,
java.lang.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 | |
java.lang.String |
getErrorCode()
Returns error code associated with this error message. |
java.lang.String |
getL10NMessage(java.util.Locale locale)
Returns a localized error message |
java.lang.String |
getLDAPErrorCode()
Returns the LDAP error code associated with this error message. |
java.lang.String |
getMessage()
Returns the error message of this exception. |
java.lang.Object[] |
getMessageArgs()
Returns arguments for formatting this error message. |
java.lang.String |
getResourceBundleName()
Returns ResourceBundle Name associated with this error
message. |
void |
setLDAPErrorCode(java.lang.String errorCode)
Replace the LDAP error code associated with this error message. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public IdRepoException()
public IdRepoException(java.lang.String msg)
msg
- The message provided by the object which is
throwing the exceptionpublic IdRepoException(java.lang.String msg, java.lang.String errorCode)
public IdRepoException(java.lang.String rbName, java.lang.String errorCode, java.lang.Object[] args)
getMessage()
will always return English messages only. This
is in consistent with current JRE.
rbName
- Resource bundle Name to be used for getting
localized error message.errorCode
- Key to resource bundle. You can use
ResourceBundle rb =
ResourceBunde.getBundle(rbName,locale);
String localizedStr = rb.getString(errorCode)
.args
- arguments to message. If it is not present pass the as null.Method Detail |
public java.lang.String getL10NMessage(java.util.Locale locale)
getL10NMessage
in interface com.sun.identity.common.L10NMessage
locale
- Uses the locale object to create the appropriate localized
error message
IdRepoException(String, String, Object[])
public java.lang.String getResourceBundleName()
ResourceBundle
Name associated with this error
message.
getResourceBundleName
in interface com.sun.identity.common.L10NMessage
ResourceBundle
name associated with this error
message.IdRepoException(String, String, Object[])
public java.lang.String getErrorCode()
getErrorCode
in interface com.sun.identity.common.L10NMessage
IdRepoException(String, String, Object[])
public java.lang.String getLDAPErrorCode()
IdRepoException(String, String, Object[])
public void setLDAPErrorCode(java.lang.String errorCode)
IdRepoException(String, String, Object[])
public java.lang.Object[] getMessageArgs()
getMessageArgs
in interface com.sun.identity.common.L10NMessage
MessageFormat
class to format the message
It can be null.IdRepoException(String, String, Object[])
public java.lang.String toString()
public java.lang.String getMessage()
getMessage
in interface com.sun.identity.common.L10NMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |