底层的方法try{}catch{}这么写
try
{
}
catch (Exception ex)
{
throw new Exception("class GetMenuTree--GetTreeList的异常", ex);
}
最上层需要显示出来的这么写
try
{
}
catch (Exception ex)
{
obj.Add("State", -1);
obj.Add("ErrorMessage", ex.ToString());
}