public class DebugUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
DebugUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
handleException(String msg,
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 String COMMONS_EXEC_LENIENT
public static final String COMMONS_EXEC_DEBUG
public static void handleException(String msg, Exception e)
msg - message describing the probleme - an exception being handledpublic static boolean isDebugEnabled()
public static boolean isLenientEnabled()
Copyright © 2014 The Apache Software Foundation. All rights reserved.