|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.exec.util.DebugUtils
public class DebugUtils
Helper classes to provide debugging support.
Field Summary | |
---|---|
static String |
COMMONS_EXEC_DEBUG
System property to determine how to dump an exception. |
static String |
COMMONS_EXEC_LENIENT
System property to determine how to handle exceptions. |
Constructor Summary | |
---|---|
DebugUtils()
|
Method Summary | |
---|---|
static void |
handleException(String msg,
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String COMMONS_EXEC_LENIENT
public static final String COMMONS_EXEC_DEBUG
Constructor Detail |
---|
public DebugUtils()
Method Detail |
---|
public static void handleException(String msg, Exception e)
msg
- message describing the probleme
- an exception being handledpublic static boolean isDebugEnabled()
public static boolean isLenientEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |