public class DistributedExceptionInfo
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
DistributedExceptionInfo(DistributedExceptionEnabled currentException)
Constructor with current exception
|
DistributedExceptionInfo(DistributedExceptionEnabled currentException,
java.lang.Throwable previousException)
Constructor with the current and previous exceptions
|
DistributedExceptionInfo(java.lang.String defaultMessage,
DistributedExceptionEnabled currentException)
Constructor with current exception
|
DistributedExceptionInfo(java.lang.String defaultMessage,
DistributedExceptionEnabled currentException,
java.lang.Throwable previousException)
Constructor with current exception
|
DistributedExceptionInfo(java.lang.String resourceBundleName,
java.lang.String resourceKey,
java.lang.Object[] formatArguments,
java.lang.String defaultText,
DistributedExceptionEnabled currentException)
Constructor with localization message information and the current exception..
|
DistributedExceptionInfo(java.lang.String resourceBundleName,
java.lang.String resourceKey,
java.lang.Object[] formatArguments,
java.lang.String defaultText,
DistributedExceptionEnabled currentException,
java.lang.Throwable previousException)
Constructor with localization message information and the current exception..
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassName()
Get the class name for this exception.
|
java.lang.String |
getDefaultMessage()
Get the default message for this exception
|
java.lang.Throwable |
getException(java.lang.String exceptionClassName)
Get a specific exception in a possible chain of exceptions.
|
java.lang.Object[] |
getFormatArguments()
Get the format arguments.
|
java.lang.String |
getMessage()
Retrieve the text message for this exception.
|
java.lang.Throwable |
getOriginalException()
Get the original exception in a possible chain of exceptions.
|
java.lang.Throwable |
getPreviousException()
Retrieves the previous exception
|
DistributedExceptionInfo |
getPreviousExceptionInfo()
Retrieve the previous exception info object.
|
java.lang.String |
getResourceBundleName()
Get the resource bundle name
|
java.lang.String |
getResourceKey()
Get the resource key that will be used to retrieve the message from the
resource bundle
|
void |
printStackTrace(java.io.PrintWriter pw)
Print the stack trace to a print writer.
|
void |
setDefaultMessage(java.lang.String defaultText)
Insert the method's description here.
|
void |
setLocalizationInfo(java.lang.String resourceBundleName,
java.lang.String resourceKey,
java.lang.Object[] formatArguments)
FOR WEBSPHERE INTERNAL USE ONLY
Set the localization information.
|
public DistributedExceptionInfo(DistributedExceptionEnabled currentException)
currentException
- java.lang.Throwablepublic DistributedExceptionInfo(DistributedExceptionEnabled currentException, java.lang.Throwable previousException)
currentException
- java.lang.ThrowablepreviousException
- java.lang.Throwablepublic DistributedExceptionInfo(java.lang.String defaultMessage, DistributedExceptionEnabled currentException)
currentException
- java.lang.Throwablepublic DistributedExceptionInfo(java.lang.String defaultMessage, DistributedExceptionEnabled currentException, java.lang.Throwable previousException)
currentException
- java.lang.Throwablepublic DistributedExceptionInfo(java.lang.String resourceBundleName, java.lang.String resourceKey, java.lang.Object[] formatArguments, java.lang.String defaultText, DistributedExceptionEnabled currentException)
resourceBundleName
- java.lang.String The name of resource bundle
that will be used to retrieve the message for getMessage().resourceKey
- java.lang.String The key in the resource bundle that
will be used to select the specific message that is retrieved for
getMessage().formatArguments
- java.lang.Object[] The arguments to be passed to
the MessageFormat class to act as replacement variables in the message
that is retrieved from the resource bundle. Valid types are those supported
by MessageFormat.defaultText
- java.lang.String The default message that will be used in
getMessage() if the resource bundle or the key cannot be foundcurrentException
- DistributedExceptionEnabled The current exceptiongetMessage()
,
MessageFormat
public DistributedExceptionInfo(java.lang.String resourceBundleName, java.lang.String resourceKey, java.lang.Object[] formatArguments, java.lang.String defaultText, DistributedExceptionEnabled currentException, java.lang.Throwable previousException)
resourceBundleName
- java.lang.String The name of resource bundle
that will be used to retrieve the message for getMessage().resourceKey
- java.lang.String The key in the resource bundle that
will be used to select the specific message that is retrieved for
getMessage().formatArguments
- java.lang.Object[] The arguments to be passed to
the MessageFormat class to act as replacement variables in the message
that is retrieved from the resource bundle. Valid types are those supported
by MessageFormat.defaultText
- java.lang.String The default message that will be used in
getMessage() if the resource bundle or the key cannot be foundcurrentException
- DistributedExceptionEnabled The current exceptionpreviousException
- java.lang.Throwable The chained exceptiongetMessage()
,
MessageFormat
public java.lang.String getClassName()
public java.lang.String getDefaultMessage()
public java.lang.Throwable getException(java.lang.String exceptionClassName) throws ExceptionInstantiationException
String
- exceptionClassName the class name of the specific exception.ExceptionInstantiationException
- An exception occurred while trying to instantiate an exception object.
If this exception is thrown, the relevant information can be retrieved
using the getPreviousExceptionInfo() method.public java.lang.Object[] getFormatArguments()
public java.lang.String getMessage()
public java.lang.Throwable getOriginalException() throws ExceptionInstantiationException
ExceptionInstantiationException
- An exception occurred while trying to instantiate an exception object.
If this exception is thrown, the relevant information can be retrieved
by using the getPreviousExceptionInfo() method.public java.lang.Throwable getPreviousException() throws ExceptionInstantiationException
ExceptionInstantiationException
- An exception occurred while trying to instantiate an exception object.
If this exception is thrown, the relevant information can be retrieved
by using the getPreviousExceptionInfo() method.public DistributedExceptionInfo getPreviousExceptionInfo()
public java.lang.String getResourceBundleName()
public java.lang.String getResourceKey()
public void printStackTrace(java.io.PrintWriter pw)
param
- java.io.PrintWriterpublic void setDefaultMessage(java.lang.String defaultText)
defaultText
- java.lang.Stringpublic void setLocalizationInfo(java.lang.String resourceBundleName, java.lang.String resourceKey, java.lang.Object[] formatArguments)
resourceBundleName
- java.lang.StringresourceKey
- java.lang.Stringarguments
- java.lang.Object[]