public class DebugUtils extends java.lang.Object
| Modifier and Type | Field | 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 | Description |
|---|---|
DebugUtils() |
| Modifier and Type | Method | 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 DebugUtils()
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()