public class ECApplicationException extends ECException implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ERROR_TYPE
Default value of the error type parameter
|
static java.lang.String |
GENERIC_ERROR_TASK
Default value of the generic error task parameter
|
APPLICATION_ERROR, ECMESSAGE, ECMESSAGEKEY, EXCEP_DATA, EXCEP_TYPE, EXCEPTION, GENERIC_APPLICATION_ERROR_TASK, GENERIC_SYSTEM_ERROR_TASK, MSG_PARAM, SYSTEM_ERROR
Constructor and Description |
---|
ECApplicationException()
This is the default constructor for this class.
|
ECApplicationException(ApplicationError applicationError)
This is a constructor for this class which has one parameter.
|
ECApplicationException(ECMessage ecMessage,
java.lang.Object[] msgParam)
This is the default constructor for this class.
|
ECApplicationException(ECMessage msg,
java.lang.String className,
java.lang.String methodName)
This is a constructor for this class which has three parameters.
|
ECApplicationException(ECMessage msg,
java.lang.String className,
java.lang.String methodName,
boolean logMessage)
This is a constructor for this class which has four parameters.
|
ECApplicationException(ECMessage msg,
java.lang.String className,
java.lang.String methodName,
java.lang.Object[] msgParam)
This is a constructor for this class which has four parameters.
|
ECApplicationException(ECMessage msg,
java.lang.String className,
java.lang.String methodName,
java.lang.Object[] msgParam,
boolean logMessage)
This is a constructor for this class which has five parameters.
|
ECApplicationException(ECMessage msg,
java.lang.String className,
java.lang.String methodName,
java.lang.Object[] msgParam,
java.lang.String errorTaskName)
This is a constructor for this class which has five parameters.
|
ECApplicationException(ECMessage msg,
java.lang.String className,
java.lang.String methodName,
java.lang.Object[] msgParam,
java.lang.String errorTaskName,
boolean logMessage)
This is a constructor for this class which has six parameters.
|
ECApplicationException(ECMessage ecMessage,
java.lang.String className,
java.lang.String methodName,
java.lang.Object[] messageParameters,
java.lang.String errorTaskName,
java.lang.String[] symptomData,
ECParameterError[] ecParameterErrors)
This is a constructor for this class which has eight parameters.
|
ECApplicationException(ECMessage ecMessage,
java.lang.String className,
java.lang.String methodName,
java.lang.Object[] messageParameters,
java.lang.String errorTaskName,
java.lang.String[] symptomData,
ECParameterError[] ecParameterErrors,
java.lang.Throwable throwable)
This is a constructor for this class which has nine parameters.
|
ECApplicationException(ECMessage msg,
java.lang.String className,
java.lang.String methodName,
java.lang.Object[] msgParam,
java.lang.String errorTaskName,
TypedProperty exceptionData)
This is a constructor for this class which has six parameters.
|
ECApplicationException(ECMessage msg,
java.lang.String className,
java.lang.String methodName,
java.lang.Object[] msgParam,
java.lang.String errorTaskName,
TypedProperty exceptionData,
boolean logMessage)
This is a constructor for this class which has seven parameters.
|
ECApplicationException(ECMessage msg,
java.lang.String className,
java.lang.String methodName,
java.lang.Object[] msgParam,
TypedProperty exceptionData)
This is a constructor for this class which has five parameters.
|
ECApplicationException(ECMessage msg,
java.lang.String className,
java.lang.String methodName,
java.lang.Object[] msgParam,
TypedProperty exceptionData,
boolean logMessage)
This is a constructor for this class which has six parameters.
|
ECApplicationException(ECMessage msg,
java.lang.String className,
java.lang.String methodName,
java.lang.String errorTaskName)
This is a constructor for this class which has four parameters.
|
ECApplicationException(ECMessage msg,
java.lang.String className,
java.lang.String methodName,
java.lang.String errorTaskName,
boolean logMessage)
This is a constructor for this class which has five parameters.
|
ECApplicationException(ECMessage msg,
java.lang.String className,
java.lang.String methodName,
java.lang.String errorTaskName,
TypedProperty exceptionData)
This is a constructor for this class which has five parameters.
|
ECApplicationException(ECMessage msg,
java.lang.String className,
java.lang.String methodName,
java.lang.String errorTaskName,
TypedProperty exceptionData,
boolean logMessage)
This is a constructor for this class which has six parameters.
|
ECApplicationException(java.lang.Throwable throwable)
This is a constructor for this class which has one parameter.
|
Modifier and Type | Method and Description |
---|---|
ECParameterError[] |
getECParameterErrors()
This method returns the
ECParameterError objects associated
with the exception. |
java.lang.String |
getErrorType()
This method gets the type of error.
|
TypedProperty |
getExceptionFields()
This method gets the parameters that caused the exception.
|
java.lang.String |
getGenericErrorTask()
This method gets the generic error task.
|
java.lang.String |
getMessage()
This method returns the localized message of the exception.
|
void |
setExceptionField(java.lang.String key,
java.lang.Object value)
This method sets a name/value pair in the exception fields object.
|
void |
setExceptionFields(TypedProperty userParam)
This method sets the parameters that caused the exception.
|
addLogData, addLogData, getCorrelationIdentifier, getECMessage, getErrorMessageKey, getErrorProperties, getErrorTaskName, getMessageKey, getMessageParameters, getStackTrace, getSymptomData, getThrowable, getUserMessage, isRecoverable, printStackTrace, printStackTrace, setErrorTaskName, setException, setOrginatingCommand, setRecoverable, setThrowable
getException, getExceptionInfo, getOriginalException, getPreviousException, printStackTrace, printSuperStackTrace, printSuperStackTrace, setDefaultMessage, setLocalizationInfo
public static final java.lang.String GENERIC_ERROR_TASK
public static final java.lang.String ERROR_TYPE
public ECApplicationException()
public ECApplicationException(ECMessage ecMessage, java.lang.Object[] msgParam)
ecMessage
- The ECMessage
object.msgParam
- An Object
array of parameter values to be passed
to the message.public ECApplicationException(ApplicationError applicationError)
applicationError
- The ApplicationError object from
AbstractBusinessObjectDocumentException.public ECApplicationException(java.lang.Throwable throwable)
throwable
- The root of the exception.public ECApplicationException(ECMessage msg, java.lang.String className, java.lang.String methodName)
msg
- An ECMessage
object used for describing the
exception.className
- The name of the class that threw this
ECApplicationException
.methodName
- The name of the method that threw this
ECApplicationException
.public ECApplicationException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam)
msg
- An ECMessage
object used for describing the
exception.className
- The name of the class that threw this
ECApplicationException
.methodName
- The name of the method that threw this
ECApplicationException
.msgParam
- An Object
array of parameter values to be passed
to the message.public ECApplicationException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam, TypedProperty exceptionData)
msg
- An ECMessage
object used for describing the
exception.className
- The name of the class that threw this
ECApplicationException
.methodName
- The name of the method that threw this
ECApplicationException
.msgParam
- An Object
array of parameter values to be passed
to the message.exceptionData
- A TypedProperty
object representing the
name/value pairs of the error fields and their corresponding
values.public ECApplicationException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam, TypedProperty exceptionData, boolean logMessage)
msg
- An ECMessage
object used for describing the
exception.className
- The name of the class that threw this
ECApplicationException
.methodName
- The name of the method that threw this
ECApplicationException
.msgParam
- An Object
array of parameter values to be passed
to the message.exceptionData
- A TypedProperty
object representing the
name/value pairs of the error fields and their corresponding
values.logMessage
- A boolean
value indicating whether an error
message is logged immediately (true if it is, false otherwise)public ECApplicationException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam, java.lang.String errorTaskName)
msg
- An ECMessage
object used for describing the
exception.className
- The name of the class that threw this
ECApplicationException
.methodName
- The name of the method that threw this
ECApplicationException
.msgParam
- An Object
array of parameter values to be passed
to the message.errorTaskName
- The name of the exception handler to handle this message.public ECApplicationException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam, java.lang.String errorTaskName, TypedProperty exceptionData)
msg
- An ECMessage
object used for describing the
exception.className
- The name of the class that threw this
ECApplicationException
.methodName
- The name of the method that threw this
ECApplicationException
.msgParam
- An Object
array of parameter values to be passed
to the message.errorTaskName
- The name of the exception handler to handle this message.exceptionData
- A TypedProperty
object representing the
name/value pairs of the error fields and their corresponding
values.public ECApplicationException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam, java.lang.String errorTaskName, TypedProperty exceptionData, boolean logMessage)
msg
- An ECMessage
object used for describing the
exception.className
- The name of the class that threw this
ECApplicationException
.methodName
- The name of the method that threw this
ECApplicationException
.msgParam
- An Object
array of parameter values to be passed
to the message.errorTaskName
- The name of the exception handler to handle this message.exceptionData
- A TypedProperty
object representing the
name/value pairs of the error fields and their corresponding
values.logMessage
- A boolean
value indicating whether an error
message is logged immediately (true if it is, false
otherwise).public ECApplicationException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam, java.lang.String errorTaskName, boolean logMessage)
msg
- An ECMessage
object used for describing the
exception.className
- The name of the class that threw this
ECApplicationException
.methodName
- The name of the method that threw this
ECApplicationException
.msgParam
- An Object
array of parameter values to be passed
to the message.errorTaskName
- The name of the exception handler to handle this message.logMessage
- A boolean
value indicating whether an error
message is logged immediately (true if it is, false
otherwise).public ECApplicationException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam, boolean logMessage)
msg
- An ECMessage
object used for describing the
exception.className
- The name of the class that threw this
ECApplicationException
.methodName
- The name of the method that threw this
ECApplicationException
.msgParam
- An Object
array of parameter values to be passed
to the message.logMessage
- A boolean
value indicating whether an error
message is logged immediately (true if it is, false
otherwise).public ECApplicationException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.String errorTaskName)
msg
- An ECMessage
object used for describing the
exception.className
- The name of the class that threw this
ECApplicationException
.methodName
- The name of the method that threw this
ECApplicationException
.errorTaskName
- The name of the exception handler to handle this message.public ECApplicationException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.String errorTaskName, TypedProperty exceptionData)
msg
- An ECMessage
object used for describing the
exception.className
- The name of the class that threw this
ECApplicationException
.methodName
- The name of the method that threw this
ECApplicationException
.errorTaskName
- The name of the exception handler to handle this message.exceptionData
- A TypedProperty
object representing the
name/value pairs of the error fields and their corresponding
values.public ECApplicationException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.String errorTaskName, TypedProperty exceptionData, boolean logMessage)
msg
- An ECMessage
object used for describing the
exception.className
- The name of the class that threw this
ECApplicationException
.methodName
- The name of the method that threw this
ECApplicationException
.errorTaskName
- The name of the exception handler to handle this message.exceptionData
- A TypedProperty
object representing the
name/value pairs of the error fields and their corresponding
values.logMessage
- A boolean
value indicating whether an error
message is logged immediately (true if it is, false
otherwise).public ECApplicationException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.String errorTaskName, boolean logMessage)
msg
- An ECMessage
object used for describing the
exception.className
- The name of the class that threw this
ECApplicationException
.methodName
- The name of the method that threw this
ECApplicationException
.errorTaskName
- The name of the exception handler to handle this message.logMessage
- A boolean
value indicating whether an error
message is logged immediately (true if it is, false
otherwise).public ECApplicationException(ECMessage msg, java.lang.String className, java.lang.String methodName, boolean logMessage)
msg
- An ECMessage
object used for describing the
exception.className
- The name of the class that threw this
ECApplicationException
.methodName
- The name of the method that threw this
ECApplicationException
.logMessage
- A boolean
value indicating whether an error
message is logged immediately (true if it is, false
otherwise).public ECApplicationException(ECMessage ecMessage, java.lang.String className, java.lang.String methodName, java.lang.Object[] messageParameters, java.lang.String errorTaskName, java.lang.String[] symptomData, ECParameterError[] ecParameterErrors)
ecMessage
- The message of the exception.className
- The class that throws the exception.methodName
- The method that throws the exception.messageParameters
- The message parameters of the exception.errorTaskName
- The task name of the exception handler to handle this
exception.symptomData
- The symptom data associated with the exception.ecParameterErrors
- Any additional errors associated with the exception.public ECApplicationException(ECMessage ecMessage, java.lang.String className, java.lang.String methodName, java.lang.Object[] messageParameters, java.lang.String errorTaskName, java.lang.String[] symptomData, ECParameterError[] ecParameterErrors, java.lang.Throwable throwable)
ecMessage
- The message of the exception.className
- The class that throws the exception.methodName
- The method that throws the exception.messageParameters
- The message parameters of the exception.errorTaskName
- The task name of the exception handler to handle this
exception.symptomData
- The symptom data associated with the exception.ecParameterErrors
- Any additional errors associated with the exception.throwable
- The cause of the exception.public java.lang.String getErrorType()
getErrorType
in class ECException
public TypedProperty getExceptionFields()
TypedProperty
object containing the name/value
pairs of the error fields and their corresponding values.public java.lang.String getGenericErrorTask()
getGenericErrorTask
in class ECException
public java.lang.String getMessage()
getMessage
in interface com.ibm.websphere.exception.DistributedExceptionEnabled
getMessage
in class ECException
Throwable.getMessage()
public void setExceptionField(java.lang.String key, java.lang.Object value)
key
- The name of an exception data.value
- The value of the exception data.public void setExceptionFields(TypedProperty userParam)
userParam
- The exception parameters.public ECParameterError[] getECParameterErrors()
ECParameterError
objects associated
with the exception.getECParameterErrors
in class ECException
ECParameterError
objects associated with
the exception.