类 DebugUtils
java.lang.Object
com.sh.common.exec.util.DebugUtils
Description:
Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidhandleException(String msg, Exception e) Handle an exception based on the system properties.static booleanDetermine if debugging is enabled based on the system property "COMMONS_EXEC_DEBUG".static booleanDetermine if lenient mode is enabled.
-
字段详细资料
-
COMMONS_EXEC_LENIENT
System 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"- 另请参阅:
-
COMMONS_EXEC_DEBUG
System property to determine how to dump an exception. When set to "true" we print any exception to stderr. The default value is "false"- 另请参阅:
-
-
构造器详细资料
-
DebugUtils
public DebugUtils()
-
-
方法详细资料
-
handleException
Handle an exception based on the system properties.- 参数:
msg- message describing the probleme- an exception being handled
-
isDebugEnabled
public static boolean isDebugEnabled()Determine if debugging is enabled based on the system property "COMMONS_EXEC_DEBUG".- 返回:
- true if debug mode is enabled
-
isLenientEnabled
public static boolean isLenientEnabled()Determine if lenient mode is enabled.- 返回:
- true if lenient mode is enabled
-