public class DebugUtils
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
COMMONS_EXEC_DEBUG
System property to determine how to dump an exception.
|
static java.lang.String |
COMMONS_EXEC_LENIENT
System property to determine how to handle exceptions.
|
| 构造器和说明 |
|---|
DebugUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
handleException(java.lang.String msg,
java.lang.Exception e)
Handle an exception based on the system properties.
|
static boolean |
isDebugEnabled()
Determine if debugging is enabled based on the
system property "COMMONS_EXEC_DEBUG".
|
static boolean |
isLenientEnabled()
Determine if lenient mode is enabled.
|
public static final java.lang.String COMMONS_EXEC_LENIENT
public static final java.lang.String COMMONS_EXEC_DEBUG
public static void handleException(java.lang.String msg,
java.lang.Exception e)
msg - message describing the probleme - an exception being handledpublic static boolean isDebugEnabled()
public static boolean isLenientEnabled()