com.ibm.commerce.messaging.util
Class ExceptionThrowingHelper
java.lang.Object
|
+--com.ibm.commerce.messaging.util.ExceptionThrowingHelper
- public abstract class ExceptionThrowingHelper
- extends java.lang.Object
A Utility class for creating and logging exceptions.
Method Summary |
static java.lang.String |
getFormatedString(ECMessage msg,
java.lang.String classString,
java.lang.String methodString,
java.lang.String parm1,
java.lang.String parm2)
Returns the formated string of the ECMessage. |
static void |
logMessage(ECMessage msg,
java.lang.String classString,
java.lang.String methodString,
java.lang.String parm1,
java.lang.String parm2)
Logs the exception. |
static ECSystemException |
throwException(ECMessage msg,
java.lang.String classString,
java.lang.String methodString,
java.lang.String parm1,
java.lang.String parm2)
Returns a ECSystemException based on the give parameters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getFormatedString
public static java.lang.String getFormatedString(ECMessage msg,
java.lang.String classString,
java.lang.String methodString,
java.lang.String parm1,
java.lang.String parm2)
- Returns the formated string of the ECMessage.
- Parameters:
exceptionNum
- com.ibm.commerce.ras.ECMessage The ECMessage key of the String to return.classString
- java.lang.String identifying the class where the exception occurred.methodString
- java.lang.String identifying the method where the exception occurred.parm1
- java.lang.String A String parameter.parm2
- java.lang.String A String parameter.- Returns:
- java.lang.String The Formated String.
logMessage
public static void logMessage(ECMessage msg,
java.lang.String classString,
java.lang.String methodString,
java.lang.String parm1,
java.lang.String parm2)
- Logs the exception.
- Parameters:
exceptionNum
- com.ibm.commerce.ras.ECMessage The ECMessage key of the String to return.classString
- java.lang.String identifying the class where the exception occurred.methodString
- java.lang.String identifying the method where the exception occurred.parm1
- java.lang.String A String parameter.parm2
- java.lang.String A String parameter.
throwException
public static ECSystemException throwException(ECMessage msg,
java.lang.String classString,
java.lang.String methodString,
java.lang.String parm1,
java.lang.String parm2)
- Returns a ECSystemException based on the give parameters.
- Parameters:
exceptionNum
- com.ibm.commerce.ras.ECMessage The ECMessage key of the String to return.classString
- java.lang.String identifying the class where the exception occurred.methodString
- java.lang.String identifying the method where the exception occurred.parm1
- java.lang.String A String parameter.parm2
- java.lang.String A String parameter.- Returns:
- com.ibm.commerce.exception.ECSystemException The ECSystemExcpetion.