com.sun.identity.liberty.ws.interaction
Class InteractionException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.sun.identity.common.ChainedException
|
+--com.sun.identity.liberty.ws.interaction.InteractionException
- All Implemented Interfaces:
- com.sun.identity.common.L10NMessage, java.io.Serializable
- Direct Known Subclasses:
- InteractionRedirectException, InteractionSOAPFaultException
- public class InteractionException
- extends com.sun.identity.common.ChainedException
Base class for exceptions that could be thrown from
InteractionService
framework.
- See Also:
- Serialized Form
Constructor Summary |
InteractionException()
No argument constructor |
InteractionException(java.lang.String message)
Constructor |
InteractionException(java.lang.String rbName,
java.lang.String errorCode,
java.lang.Object[] args,
java.lang.Throwable nestedException)
Constructor
Constructs an instance of InteractionException 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. |
InteractionException(java.lang.String message,
java.lang.Throwable nestedException)
Constructor |
InteractionException(java.lang.Throwable nestedException)
Constructor |
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 |
fillInStackTrace, getLocalizedMessage, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InteractionException
public InteractionException()
- No argument constructor
InteractionException
public InteractionException(java.lang.String message)
- Constructor
- Parameters:
message
- message for the exception
InteractionException
public InteractionException(java.lang.Throwable nestedException)
- Constructor
- Parameters:
nestedException
- Throwable
nested in this exception.
InteractionException
public InteractionException(java.lang.String message,
java.lang.Throwable nestedException)
- Constructor
- Parameters:
message
- message for the exceptionnestedException
- Throwable
nested in this exception.
InteractionException
public InteractionException(java.lang.String rbName,
java.lang.String errorCode,
java.lang.Object[] args,
java.lang.Throwable nestedException)
- Constructor
Constructs an instance of
InteractionException
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.
Instead this constructor provides Resource Bundle name and error code
for correctly locating the error message. The default
getMessage()
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 them
as nullnestedException
- The root cause of this exception
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.