namespace Tmac.Utilities
{
///
/// 异常处理操作类
///
public class ExceptionHandlingUtil
{
//默认策略,与配置文件中定义的一致
private const string defaultPolicy = "Default Policy";
///
/// 记录异常日志
///
///
///
public static bool HandleException(Exception ex)
{
return HandleException(ex,defaultPolicy);
}
public static bool HandleException(Exception ex, string policy)
{
return ExceptionPolicy.HandleException(ex, policy);
}
}
}
|