public class DataloadExceptionHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
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.
|
public static final java.lang.String COPYRIGHT
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)
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.public static void logException(java.util.logging.Logger logger, java.util.logging.Level level, java.lang.Exception e)
logger
- The logger created in the class that caught the exception.level
- The logging level.e
- The exception that was caught.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)
String
.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.String
.