您的位置:首页 > 其它

使用微软企业库-异常处理

2008-08-17 14:37 218 查看
using System;

//

using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling;

/// <summary>

///使用微软企业库-异常处理

/// </summary>

public class EnterpriseException

{

public void AddDept(string name)

{

try

{

//

}

catch (Exception ex)

{

bool reThrow = ExceptionPolicy.HandleException(ex, "Data Access Policy");

if (reThrow)

{

throw;

}

}

}

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: