public class DebugUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
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.
|
| Constructor and Description |
|---|
DebugUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
handleException(java.lang.String msg,
java.lang.Exception e)
Handles an exception based on the system properties.
|
static boolean |
isDebugEnabled()
Determines if debugging is enabled based on the
system property "COMMONS_EXEC_DEBUG".
|
static boolean |
isLenientEnabled()
Determines 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()