public class BusinessContextServiceException extends ServiceException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
BusinessContextServiceException()
The zero-argument constructor.
|
BusinessContextServiceException(ECMessage message,
java.lang.String strClassName,
java.lang.String strMethodName,
java.lang.String[] msgParams)
Constructs a
BusinessContextServiceException with the specified parameters. |
BusinessContextServiceException(ECMessage message,
java.lang.String strClassName,
java.lang.String strMethodName,
java.lang.String[] msgParams,
java.lang.Throwable throwable)
Constructs a
BusinessContextServiceException with the specified parameters. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassname()
Gets the name of the class that is throwing this exception.
|
ECMessage |
getECMessage()
Gets the message that describes this exception.
|
java.lang.String |
getLocalizedMessage()
Gets the localized message that describes this exception.
|
java.lang.String |
getMessage()
Gets the localized message that describes this exception.
|
java.lang.String[] |
getMessageParameters()
Gets the parameters that the message requires.
|
java.lang.String |
getMethodName()
Gets the name of the method that is throwing this exception.
|
long |
getReasonCode()
Gets the reason code.
|
void |
logException()
Logs this exception.
|
void |
setClassname(java.lang.String string)
Sets the name of the class that is throwing this exception.
|
void |
setECMessage(ECMessage message)
Sets the message that describes this exception.
|
void |
setMessageParameters(java.lang.String[] strings)
Sets the parameters that the message requires.
|
void |
setMethodName(java.lang.String string)
Sets the name of the method that is throwing this exception.
|
getCorrelationIdentifier, getServiceParameterErrors, getSymptomData, isRecoverable, printStackTrace, printStackTrace
public static final java.lang.String COPYRIGHT
public BusinessContextServiceException()
ServiceException.ServiceException()
public BusinessContextServiceException(ECMessage message, java.lang.String strClassName, java.lang.String strMethodName, java.lang.String[] msgParams)
BusinessContextServiceException
with the specified parameters.ecMessage
- a message that describes this exceptionclassName
- the name of the class that is throwing this exception (to be used for logging purposes)methodName
- the name of the method that is throwing this exception (to be used for logging purposes)msgParams
- the parameters that the message requirespublic BusinessContextServiceException(ECMessage message, java.lang.String strClassName, java.lang.String strMethodName, java.lang.String[] msgParams, java.lang.Throwable throwable)
BusinessContextServiceException
with the specified parameters.ecMessage
- a message that describes this exceptionclassName
- the name of the class that is throwing this exception (to be used for logging purposes)methodName
- the name of the method that is throwing this exception (to be used for logging purposes)msgParams
- the parameters that the message requiresthrowable
- the cause of this exceptionpublic java.lang.String getMessage()
getMessage
in class ServiceException
Throwable.getMessage()
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class ServiceException
Throwable.getLocalizedMessage()
public void logException()
public java.lang.String getClassname()
public ECMessage getECMessage()
public java.lang.String getMethodName()
public java.lang.String[] getMessageParameters()
public void setClassname(java.lang.String string)
string
- the name of the classpublic void setECMessage(ECMessage message)
message
- the messagepublic void setMethodName(java.lang.String string)
string
- the name of the methodpublic void setMessageParameters(java.lang.String[] strings)
strings
- an array of the parameterspublic long getReasonCode()
getReasonCode
in class ServiceException
ServiceException.getReasonCode()