public class ExceptionHelper
extends java.lang.Object
Constructor and Description |
---|
ExceptionHelper() |
Modifier and Type | Method and Description |
---|---|
static ECApplicationException |
buildECApplicationExceptionFromBaseException(BaseException baseExc,
java.lang.String sourceClassName,
java.lang.String sourceMethodName)
This method builds an
ECApplicationException object from a BaseException object. |
static ECException |
buildECException(BaseException e,
java.lang.String sourceClassName,
java.lang.String sourceMethodName)
This method returns the
ECException object from the BaseException object. |
static ECSystemException |
buildECSystemExceptionFromBaseException(BaseException baseExc,
java.lang.String sourceClassName,
java.lang.String sourceMethodName)
This method builds an
ECSystemException object from a BaseException object. |
static boolean |
isSystemException(BaseException e)
This method returns if the
BaseException object is system level exception. |
static void |
setCommonProperties(BaseException theException,
java.lang.String className,
java.lang.String methodName)
This method sets common properties of exception in Payment Rules/WebSphere Commerce Payments components.
|
static void |
setCommonProperties(BaseException theException,
java.lang.String className,
java.lang.String methodName,
java.lang.String messageKey)
This method sets common properties of exception in Payment Rules/WebSphere Commerce Payments components.
|
static void |
setCommonProperties(BaseException theException,
java.lang.String className,
java.lang.String methodName,
java.lang.String messageKey,
java.lang.Object messageParameter)
This method sets common properties of exception in Payment Rules/WebSphere Commerce Payments components.
|
static void |
setCommonProperties(BaseException theException,
java.lang.String className,
java.lang.String methodName,
java.lang.String messageKey,
java.lang.Object[] messageParameters)
This method sets common properties of exception in Payment Rules/WebSphere Commerce Payments components.
|
public static void setCommonProperties(BaseException theException, java.lang.String className, java.lang.String methodName, java.lang.String messageKey, java.lang.Object[] messageParameters)
theException
- The exception to be updatedclassName
- The name of the class that caused the exceptionmethodName
- The name of the method that caused the exceptionmessageKey
- The key messagemessageParameters
- The parameters for the message to be globalizedpublic static void setCommonProperties(BaseException theException, java.lang.String className, java.lang.String methodName, java.lang.String messageKey, java.lang.Object messageParameter)
theException
- The exception to be updatedclassName
- The name of the class that caused the exceptionmethodName
- The name of the method that caused the exceptionmessageKey
- The key messagemessageParameter
- The parameters for the message to be globalizedpublic static void setCommonProperties(BaseException theException, java.lang.String className, java.lang.String methodName, java.lang.String messageKey)
theException
- The exception to be updatedclassName
- The name of the class that caused the exceptionmethodName
- The name of the method that caused the exceptionmessageKey
- The key messagepublic static void setCommonProperties(BaseException theException, java.lang.String className, java.lang.String methodName)
theException
- The exception to be updatedclassName
- The name of the class that caused the exceptionmethodName
- The name of the method that caused the exceptionpublic static ECException buildECException(BaseException e, java.lang.String sourceClassName, java.lang.String sourceMethodName)
ECException
object from the BaseException
object.e
- the BaseException
object thrown in WebSphere Commerce Payments componentsourceClassName
- name of the source class where this exception is thrownsourceMethodName
- name of the source method where this exception is thrownECException
object from the BaseException
objectpublic static ECSystemException buildECSystemExceptionFromBaseException(BaseException baseExc, java.lang.String sourceClassName, java.lang.String sourceMethodName)
ECSystemException
object from a BaseException
object.baseExc
- the BaseException
objectsourceClassName
- name of the source class where this exception is thrownsourceMethodName
- name of the source method where this exception is thrownECSystemException
objectpublic static ECApplicationException buildECApplicationExceptionFromBaseException(BaseException baseExc, java.lang.String sourceClassName, java.lang.String sourceMethodName)
ECApplicationException
object from a BaseException
object.baseExc
- the BaseException
objectsourceClassName
- name of the source class where this exception is thrownsourceMethodName
- name of the source method where this exception is thrownECApplicationException
objectpublic static boolean isSystemException(BaseException e)
BaseException
object is system level exception.e
- the BaseException
objectBaseException
object is system level exception