public class ErrorDataBean extends SmartDataBeanImpl
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
emptyString| Constructor and Description |
|---|
ErrorDataBean()
This is the default constructor for this class.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCorrectiveActionMessage()
This method gets the corrective action error message text.
|
java.lang.String |
getCorrectiveActionMessage(java.util.Locale loc)
This method gets the corrective action message in the locale specified.
|
java.lang.String |
getCorrelationIdentifier()
This method gets the correlation identifier associated with the error.
|
ECMessage |
getECCorrectiveActionMessage()
This method gets the corrective
ECMessage object associated with the exception. |
ECMessage |
getECMessage()
This method gets the
ECMessage object associated with the exception. |
java.lang.String |
getErrorCode()
This method gets the error code if one exists.
|
java.lang.Throwable |
getException()
This method gets the actual exception associated with this error.
|
TypedProperty |
getExceptionData()
This method gets the user error message data associated with the exception.
|
java.lang.String |
getExceptionType()
This method gets the exception type.
|
java.lang.String |
getMessage()
This method gets the user error message text.
|
java.lang.String |
getMessage(java.util.Locale loc)
This method gets the user error message text.
|
java.lang.String |
getMessageKey()
This method gets the exception message key.
|
java.lang.Object[] |
getMessageParam()
This method gets the error message parameters.
|
java.lang.String |
getOriginatingCommand()
This method gets the command that originated the exception.
|
TypedProperty |
getRequestProperties()
This method gets the input properties associated with the error data bean.
|
java.lang.Throwable |
getRootCause()
This method returns the root cause of an exception
|
java.lang.String |
getStackTrace()
This method gets the exception stack if there is an exception associated with the error.
|
java.lang.String |
getSystemMessage()
This method gets the system error message text.
|
java.lang.String |
getSystemMessage(java.util.Locale loc)
This method gets the system error message text.
|
boolean |
hasErrorCode(java.lang.String code)
This method gets whether the exception data contains the input error code.
|
void |
populate()
This method populates the error data bean.
|
void |
populate(ECException e)
This method populates the error data bean with the given exception.
|
void |
setECCorrectiveActionMessage(ECMessage newValue)
This method sets the corrective action error message.
|
void |
setECMessage(ECMessage newValue)
This method sets the exception message.
|
void |
setException(java.lang.Throwable throwable)
This method sets the exception of the error data bean.
|
void |
setExceptionType(java.lang.String newValue)
This method sets the exception type.
|
void |
setOriginatingCommand(java.lang.String newValue)
This method sets the originating command for the error.
|
java.lang.String |
toString()
This method gets a
String representation of the object. |
fulfills, getCommandContext, getHttpRequest, getHttpResponse, getResources, getViewCommandContext, setCommandContext, setHttpRequest, setHttpResponse, setViewCommandContextsetRequestPropertiesequals, getClass, hashCode, notify, notifyAll, wait, wait, waitsetRequestPropertiespublic static final java.lang.String COPYRIGHT
public ErrorDataBean()
public java.lang.String getCorrectiveActionMessage()
public java.lang.String getCorrectiveActionMessage(java.util.Locale loc)
loc - This is the locale for the message.public ECMessage getECCorrectiveActionMessage()
ECMessage object associated with the exception.public ECMessage getECMessage()
ECMessage object associated with the exception.public java.lang.String getErrorCode()
public java.lang.String getCorrelationIdentifier()
public java.lang.Throwable getException()
public TypedProperty getExceptionData()
public java.lang.String getExceptionType()
public java.lang.String getMessage()
public java.lang.String getMessage(java.util.Locale loc)
loc - This is the locale for the message text.public java.lang.String getMessageKey()
public java.lang.Object[] getMessageParam()
public java.lang.String getOriginatingCommand()
public TypedProperty getRequestProperties()
getRequestProperties in interface InputDataBeangetRequestProperties in class InputDataBeanImplpublic java.lang.String getStackTrace()
public java.lang.String getSystemMessage()
public java.lang.String getSystemMessage(java.util.Locale loc)
loc - This is the locale for the message text.public boolean hasErrorCode(java.lang.String code)
true if there is an error code associated with the exception
and false otherwise.public void populate()
requestProperties object associated with the bean.populate in interface SmartDataBeanpopulate in class SmartDataBeanImplpublic void populate(ECException e)
requestProperties object associated with the bean.e - This is the exception with which the bean will be populated.public void setECCorrectiveActionMessage(ECMessage newValue)
public void setECMessage(ECMessage newValue)
newValue - This is the exception message.public void setExceptionType(java.lang.String newValue)
newValue - This is the exception type.public void setException(java.lang.Throwable throwable)
throwable - This is the exception of the error data bean.public void setOriginatingCommand(java.lang.String newValue)
newValue - This is the originating command.public java.lang.String toString()
String representation of the object.toString in class java.lang.ObjectString representation of the object.public java.lang.Throwable getRootCause()