com.ibm.commerce.foundation.dataload.util

Class DataloadExceptionHelper

  • java.lang.Object
    • com.ibm.commerce.foundation.dataload.util.DataloadExceptionHelper


  • public class DataloadExceptionHelper
    extends java.lang.Object
    The class will provide methods to help deal with exceptions caught during the data load.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM Copyright notice field.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String generateExceptionInformationAsString(java.util.logging.Logger logger, java.lang.Throwable e, java.lang.String className, java.lang.String methodName, java.lang.String msg, java.lang.Object[] params)
      This method returns exception information as a String.
      static void logException(java.util.logging.Logger logger, java.util.logging.Level level, java.lang.Exception e)
      Log the exception details to the application log.
      static void logException(java.util.logging.Logger logger, java.lang.Throwable e, java.lang.String className, java.lang.String methodName, java.lang.String msg, java.lang.Object[] params)
      Log the exception details to the application log.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
    • Method Detail

      • logException

        public static void logException(java.util.logging.Logger logger,
                                        java.lang.Throwable e,
                                        java.lang.String className,
                                        java.lang.String methodName,
                                        java.lang.String msg,
                                        java.lang.Object[] params)
        Log the exception details to the application log.
        Parameters:
        logger - The logger created in the class that caught the exception.
        e - The exception that was caught.
        className - The class name of the class that caught the exception.
        methodName - The method name of the class that caught the exception.
        msg - The message you wish to have logged with the exception.
        params - The parameters you wish to have logged with the exception.
      • logException

        public static void logException(java.util.logging.Logger logger,
                                        java.util.logging.Level level,
                                        java.lang.Exception e)
        Log the exception details to the application log.
        Parameters:
        logger - The logger created in the class that caught the exception.
        level - The logging level.
        e - The exception that was caught.
      • generateExceptionInformationAsString

        public static java.lang.String generateExceptionInformationAsString(java.util.logging.Logger logger,
                                                                            java.lang.Throwable e,
                                                                            java.lang.String className,
                                                                            java.lang.String methodName,
                                                                            java.lang.String msg,
                                                                            java.lang.Object[] params)
        This method returns exception information as a String.
        Parameters:
        logger - The logger created in the class that caught the exception.
        e - The exception that was caught.
        className - The class name of the class that caught the exception.
        methodName - The method name of the class that caught the exception.
        msg - The message you wish to have logged with the exception.
        params - The parameters you wish to have logged with the exception.
        Returns:
        String This method returns exception information as a String.