com.ibm.commerce.exception
Class ECSystemException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.ibm.websphere.exception.DistributedException
-
- com.ibm.websphere.command.CommandException
-
- com.ibm.commerce.exception.ECException
-
- com.ibm.commerce.exception.ECSystemException
-
- All Implemented Interfaces:
- com.ibm.commerce.exception.ECCorrelatedIdentity, com.ibm.websphere.exception.DistributedExceptionEnabled, java.io.Serializable
- Direct Known Subclasses:
- ResourceNotFoundException
public class ECSystemException extends ECException implements java.io.Serializable
This class defines the exceptions thrown by the WebSphere Commerce Application Server when system errors occur during processing.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.ibm.commerce.exception.ECException
APPLICATION_ERROR, ECMESSAGE, ECMESSAGEKEY, EXCEP_DATA, EXCEP_TYPE, EXCEPTION, GENERIC_APPLICATION_ERROR_TASK, GENERIC_SYSTEM_ERROR_TASK, MSG_PARAM, SYSTEM_ERROR
-
-
Constructor Summary
Constructors Constructor and Description ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName)
This is a constructor for this class with three parameters.ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, boolean logMsg)
This is a constructor for this class with four parameters.ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam)
This is a constructor for this class with four parameters.ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam, boolean logMsg)
This is a constructor for this class with five parameters.ECSystemException(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 with five parameters.ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam, java.lang.String errorTaskName, boolean logMsg)
This is a constructor for this class with six parameters.ECSystemException(ECMessage ecMessage, java.lang.String className, java.lang.String methodName, java.lang.Object[] messageParameters, java.lang.String errorTaskName, java.lang.String[] symptomData)
This is a constructor for this class with four parameters.ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam, java.lang.String errorTaskName, java.lang.Throwable exc)
This is a constructor for this class with six parameters.ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam, java.lang.String errorTaskName, java.lang.Throwable exc, boolean logMsg)
This is a constructor for this class with seven parameters.ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam, java.lang.Throwable exc)
This is a constructor for this class with five parameters.ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam, java.lang.Throwable exc, boolean logMsg)
This is a constructor for this class with six parameters.ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.String errorTaskName)
This is a constructor for this class with four parameters.ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.String errorTaskName, boolean logMsg)
This is a constructor for this class with five parameters.ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.String errorTaskName, java.lang.Throwable exc)
This is a constructor for this class with five parameters.ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.String errorTaskName, java.lang.Throwable exc, boolean logMsg)
This is a constructor for this class with six parameters.ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Throwable exc)
This is a constructor for this class with four parameters.ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Throwable exc, boolean logMsg)
This is a constructor for this class with five parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Throwable
getCause()
This method returns the root cause of the exception.java.lang.String
getErrorType()
This method gets the type of error.java.lang.String
getGenericErrorTask()
This method gets the generic error task.void
setExceptionValues(ECMessage msg, java.lang.Object[] msgParam, java.lang.String errorTaskName, java.lang.Throwable exc)
This method sets the exception values of anECSystemException
.-
Methods inherited from class com.ibm.commerce.exception.ECException
addLogData, addLogData, getCorrelationIdentifier, getECMessage, getECParameterErrors, getErrorMessageKey, getErrorProperties, getErrorTaskName, getMessage, getMessageKey, getMessageParameters, getStackTrace, getSymptomData, getThrowable, getUserMessage, isRecoverable, printStackTrace, printStackTrace, setErrorTaskName, setException, setOrginatingCommand, setRecoverable, setThrowable
-
Methods inherited from class com.ibm.websphere.exception.DistributedException
getException, getExceptionInfo, getOriginalException, getPreviousException, printStackTrace, printSuperStackTrace, printSuperStackTrace, setDefaultMessage, setLocalizationInfo
-
-
-
-
Constructor Detail
-
ECSystemException
public ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName)
This is a constructor for this class with three parameters.- Parameters:
msg
- AnECMessage
object used for describing the exception.className
- The name of the class that threw thisECSystemException
.methodName
- The name of the method that threw thisECSystemException
.
-
ECSystemException
public ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam)
This is a constructor for this class with four parameters.- Parameters:
msg
- AnECMessage
object used for describing the exception.className
- The name of the class that threw thisECSystemException
.methodName
- The name of the method that threw thisECSystemException
.msgParam
- AnObject
array of parameter values to be passed to the message.
-
ECSystemException
public ECSystemException(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 with five parameters.- Parameters:
msg
- AnECMessage
object used for describing the exceptionclassName
- The name of the class that threw thisECSystemException
.methodName
- The name of the method that threw thisECSystemException
.msgParam
- AnObject
array of parameter values to be passed to the message.errorTaskName
- The name of the exception handler to handle this error.
-
ECSystemException
public ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam, java.lang.String errorTaskName, java.lang.Throwable exc)
This is a constructor for this class with six parameters.- Parameters:
msg
- AnECMessage
object used for describing the exceptionclassName
- The name of the class that threw thisECSystemException
.methodName
- The name of the method that threw thisECSystemException
.msgParam
- AnObject
array of parameter values to be passed to the message.errorTaskName
- The name of the exception handler to handle this error.exc
- The exception captured at the original point of failure.
-
ECSystemException
public ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam, java.lang.String errorTaskName, java.lang.Throwable exc, boolean logMsg)
This is a constructor for this class with seven parameters.- Parameters:
msg
- AnECMessage
object used for describing the exceptionclassName
- The name of the class that threw thisECSystemException
.methodName
- The name of the method that threw thisECSystemException
.msgParam
- AnObject
array of parameter values to be passed to the message.errorTaskName
- The name of the exception handler to handle this error.exc
- The exception captured at the original point of failure.logMsg
- Aboolean
value indicating whether the message is logged immediately (true if it is, false otherwise).
-
ECSystemException
public ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam, java.lang.String errorTaskName, boolean logMsg)
This is a constructor for this class with six parameters.- Parameters:
msg
- AnECMessage
object used for describing the exception.className
- The name of the class that threw thisECSystemException
.methodName
- The name of the method that threw thisECSystemException
.msgParam
- AnObject
array of parameter values to be passed to the message.errorTaskName
- The name of the exception handler to handle this error.logMsg
- Aboolean
value indicating whether the message is logged immediately (true if it is, false otherwise).
-
ECSystemException
public ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam, java.lang.Throwable exc)
This is a constructor for this class with five parameters.- Parameters:
msg
- AnECMessage
object used for describing the exception.className
- The name of the class that threw thisECSystemException
.methodName
- The name of the method that threw thisECSystemException
.msgParam
- AnObject
array of parameter values to be passed to the message.exc
- The exception captured at the original point of failure.
-
ECSystemException
public ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam, java.lang.Throwable exc, boolean logMsg)
This is a constructor for this class with six parameters.- Parameters:
msg
- AnECMessage
object used for describing the exception.className
- The name of the class that threw thisECSystemException
.methodName
- The name of the method that threw thisECSystemException
.msgParam
- AnObject
array of parameter values to be passed to the message.exc
- The exception captured at the original point of failure.logMsg
- Aboolean
value indicating whether the message is logged immediately (true if it is, false otherwise).
-
ECSystemException
public ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Object[] msgParam, boolean logMsg)
This is a constructor for this class with five parameters.- Parameters:
msg
- AnECMessage
object used for describing the exception.className
- The name of the class that threw thisECSystemException
.methodName
- The name of the method that threw thisECSystemException
.msgParam
- AnObject
array of parameter values to be passed to the message.logMsg
- Aboolean
value indicating whether the message is logged immediately (true if it is, false otherwise).
-
ECSystemException
public ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.String errorTaskName)
This is a constructor for this class with four parameters.- Parameters:
msg
- AnECMessage
object used for describing the exception.className
- The name of the class that threw thisECSystemException
.methodName
- The name of the method that threw thisECSystemException
.errorTaskName
- The name of the exception handler to handle this error.
-
ECSystemException
public ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.String errorTaskName, java.lang.Throwable exc)
This is a constructor for this class with five parameters.- Parameters:
msg
- AnECMessage
object used for describing the exception.className
- The name of the class that threw thisECSystemException
.methodName
- The name of the method that threw thisECSystemException
.errorTaskName
- The name of the exception handler to handle this error.exc
- The exception captured at the original point of failure.
-
ECSystemException
public ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.String errorTaskName, java.lang.Throwable exc, boolean logMsg)
This is a constructor for this class with six parameters.- Parameters:
msg
- AnECMessage
object used for describing the exception.className
- The name of the class that threw thisECSystemException
.methodName
- The name of the method that threw thisECSystemException
.errorTaskName
- The name of the exception handler to handle this error.exc
- The exception captured at the original point of failure.logMsg
- Aboolean
value indicating whether the message is logged immediately (true if it is, false otherwise).
-
ECSystemException
public ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.String errorTaskName, boolean logMsg)
This is a constructor for this class with five parameters.- Parameters:
msg
- AnECMessage
object used for describing the exception.className
- The name of the class that threw thisECSystemException
.methodName
- The name of the method that threw thisECSystemException
.errorTaskName
- The name of the exception handler to handle this error.logMsg
- Aboolean
value indicating whether the message is logged immediately (true if it is, false otherwise).
-
ECSystemException
public ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Throwable exc)
This is a constructor for this class with four parameters.- Parameters:
msg
- AnECMessage
object used for describing the exception.className
- The name of the class that threw thisECSystemException
.methodName
- The name of the method that threw thisECSystemException
.exc
- The exception captured at the original point of failure.
-
ECSystemException
public ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, java.lang.Throwable exc, boolean logMsg)
This is a constructor for this class with five parameters.- Parameters:
msg
- AnECMessage
object used for describing the exception.className
- The name of the class that threw thisECSystemException
.methodName
- The name of the method that threw thisECSystemException
.exc
- The exception captured at the original point of failure.logMsg
- Aboolean
value indicating whether the message is logged immediately (true if it is, false otherwise).
-
ECSystemException
public ECSystemException(ECMessage msg, java.lang.String className, java.lang.String methodName, boolean logMsg)
This is a constructor for this class with four parameters.- Parameters:
msg
- AnECMessage
object used for describing the exception.className
- The name of the class that threw thisECSystemException
.methodName
- The name of the method that threw thisECSystemException
.logMsg
- Aboolean
value indicating whether the message is logged immediately (true if it is, false otherwise).
-
ECSystemException
public ECSystemException(ECMessage ecMessage, java.lang.String className, java.lang.String methodName, java.lang.Object[] messageParameters, java.lang.String errorTaskName, java.lang.String[] symptomData)
This is a constructor for this class with four parameters.- Parameters:
activityToken
- The activity token.ecMessage
- AnECMessage
object used for describing the exception.className
- The name of the class that threw thisECSystemException
.methodName
- The name of the method that threw thisECSystemException
.messageParameters
- AnObject
array of parameter values to be passed to the message.errorTaskName
- The name of the exception handler to handle this error.symptomData
- The symptom data associated with the exception.ecParameterErrors
- Any additional errors associated with the exception.
-
-
Method Detail
-
getErrorType
public java.lang.String getErrorType()
This method gets the type of error.- Specified by:
getErrorType
in classECException
- Returns:
- The error type, which is always a system error.
-
getGenericErrorTask
public java.lang.String getGenericErrorTask()
This method gets the generic error task.- Specified by:
getGenericErrorTask
in classECException
- Returns:
- The generic error task.
-
setExceptionValues
public void setExceptionValues(ECMessage msg, java.lang.Object[] msgParam, java.lang.String errorTaskName, java.lang.Throwable exc)
This method sets the exception values of anECSystemException
.- Parameters:
msg
- AnECMessage
object used for describing the exception.msgParam
- AnObject
array of parameter values to be passed to the message.errorTaskName
- The name of the exception handler to handle this error.exc
- The exception captured at the original point of failure.
-
getCause
public java.lang.Throwable getCause()
This method returns the root cause of the exception.- Overrides:
getCause
in classjava.lang.Throwable
- Returns:
- The root cause of the exception.
-
-