Package org.apache.commons.exec.util
Class DebugUtils
java.lang.Object
org.apache.commons.exec.util.DebugUtils
Provides debugging support.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidhandleException(String msg, Exception e) Handles an exception based on the system properties.static booleanDetermines if debugging is enabled based on the system property "COMMONS_EXEC_DEBUG".static booleanDetermines if lenient mode is enabled.
- 
Field Details- 
COMMONS_EXEC_LENIENTSystem property to determine how to handle exceptions. When set to "false" we rethrow the otherwise silently catched exceptions found in the original code. The default value is "true"- See Also:
 
- 
COMMONS_EXEC_DEBUGSystem property to determine how to dump an exception. When set to "true" we print any exception to stderr. The default value is "false"- See Also:
 
 
- 
- 
Constructor Details- 
DebugUtilsDeprecated.Will be private in the next major version.Constructs a new instance.
 
- 
- 
Method Details- 
handleExceptionHandles an exception based on the system properties.- Parameters:
- msg- message describing the problem.
- e- an exception being handled.
 
- 
isDebugEnabledDetermines if debugging is enabled based on the system property "COMMONS_EXEC_DEBUG".- Returns:
- true if debug mode is enabled.
 
- 
isLenientEnabledDetermines if lenient mode is enabled.- Returns:
- true if lenient mode is enabled.
 
 
-