Package com.sun.identity.delegation
Class DelegationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.sun.identity.common.ChainedException
-
- com.sun.identity.delegation.DelegationException
-
- All Implemented Interfaces:
L10NMessage,Serializable
public class DelegationException extends ChainedException
The classDelegationExceptionis the basic exception for the delegation component.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DelegationException(String message)Constructs an instance of theDelegationExceptionclass.DelegationException(String rbName, String errorCode, Object[] args, Throwable nestedException)Constructs an instance ofDelegationExceptionto pass the localized error message.DelegationException(String message, Throwable nestedException)Constructs an instance of theDelegationExceptionclass.DelegationException(Throwable nestedException)Constructs an instance of theDelegationExceptionclass.
-
Method Summary
-
Methods inherited from class com.sun.identity.common.ChainedException
getCompleteL10NMessage, getErrorCode, getL10NMessage, getMessage, getMessageArgs, getResourceBundleName, printStackTrace, printStackTrace, printStackTrace
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DelegationException
public DelegationException(String message)
Constructs an instance of theDelegationExceptionclass.- Parameters:
message- The message provided by the object that is throwing the exception.
-
DelegationException
public DelegationException(Throwable nestedException)
Constructs an instance of theDelegationExceptionclass.- Parameters:
nestedException- the exception caught by the code block creating this exception
-
DelegationException
public DelegationException(String message, Throwable nestedException)
Constructs an instance of theDelegationExceptionclass.- Parameters:
message- message of this exceptionnestedException- the exception caught by the code block creating this exception
-
DelegationException
public DelegationException(String rbName, String errorCode, Object[] args, Throwable nestedException)
Constructs an instance ofDelegationExceptionto 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 and error code for correctly locating the error message. The defaultgetMessage()will always return English messages only. This is consistent with current JRE- Parameters:
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 nullnestedException- The root cause of this error
-
-