Class InteractionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.sun.identity.shared.locale.L10NMessageImpl
-
- com.sun.identity.liberty.ws.interaction.InteractionException
-
- All Implemented Interfaces:
L10NMessage,Serializable
- Direct Known Subclasses:
InteractionRedirectException,InteractionSOAPFaultException
public class InteractionException extends L10NMessageImpl
Base class for exceptions that could be thrown fromInteractionServiceframework.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InteractionException(String message)ConstructorInteractionException(String rbName, String errorCode, Object[] args)Constructor Constructs an instance ofInteractionExceptionto 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(Throwable nestedException)Constructor
-
Method Summary
-
Methods inherited from class com.sun.identity.shared.locale.L10NMessageImpl
getErrorCode, getL10NMessage, getMessage, getMessageArgs, getResourceBundleName
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InteractionException
public InteractionException(String message)
Constructor- Parameters:
message- message for the exception
-
InteractionException
public InteractionException(Throwable nestedException)
Constructor- Parameters:
nestedException-Throwablenested in this exception.
-
InteractionException
public InteractionException(String rbName, String errorCode, Object[] args)
Constructor Constructs an instance ofInteractionExceptionto 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 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 useResourceBundle rb = ResourceBunde.getBundle (rbName,locale); String localizedStr = rb.getString(errorCode);
args- arguments to message. If it is not present pass them as null
-
-