|
@ -247,25 +247,33 @@ namespace CK.SCP.Controller |
|
|
|
|
|
|
|
|
_ret.State = ReturnStatus.Failed; |
|
|
_ret.State = ReturnStatus.Failed; |
|
|
_ret.ErrorList.Add(ex); |
|
|
_ret.ErrorList.Add(ex); |
|
|
LogHelper.Writlog(LogHelper.LogType.Error, typeof(SCP_TB_PRICE_CONTROLLER), "Get_TB_PRICE_List", ex.ToString()); |
|
|
LogHelper.Writlog(LogHelper.LogType.Error, typeof(SCP_TB_PRICE_CONTROLLER), "Get_TB_PRICE_List", ex.Message.ToString()); |
|
|
|
|
|
if (ex.InnerException != null) |
|
|
|
|
|
{ |
|
|
|
|
|
LogHelper.Writlog(LogHelper.LogType.Error, typeof(SCP_TB_PRICE_CONTROLLER), "Get_TB_PRICE_List", ex.InnerException.Message.ToString()); |
|
|
|
|
|
} |
|
|
throw new ScpException(ResultCode.Exception, "9999", ex.ToString()); |
|
|
throw new ScpException(ResultCode.Exception, "9999", ex.ToString()); |
|
|
} |
|
|
} |
|
|
catch (ScpException ex) |
|
|
catch (ScpException ex) |
|
|
{ |
|
|
{ |
|
|
_ret.State = ReturnStatus.Failed; |
|
|
_ret.State = ReturnStatus.Failed; |
|
|
_ret.ErrorList.Add(ex); |
|
|
_ret.ErrorList.Add(ex); |
|
|
LogHelper.Writlog(LogHelper.LogType.Error, typeof(SCP_TB_PRICE_CONTROLLER), "Get_TB_PRICE_List", ex.ToString()); |
|
|
LogHelper.Writlog(LogHelper.LogType.Error, typeof(SCP_TB_PRICE_CONTROLLER), "Get_TB_PRICE_List", ex.Message.ToString()); |
|
|
|
|
|
|
|
|
if (ex.InnerException != null && ex.InnerException.GetType() == typeof(UpdateException)) |
|
|
if (ex.InnerException != null && ex.InnerException.GetType() == typeof(UpdateException)) |
|
|
{ |
|
|
{ |
|
|
var inner = (UpdateException)ex.InnerException; |
|
|
var inner = (UpdateException)ex.InnerException; |
|
|
|
|
|
LogHelper.Writlog(LogHelper.LogType.Error, typeof(SCP_TB_PRICE_CONTROLLER), "Get_TB_PRICE_List", inner.Message.ToString()); |
|
|
|
|
|
|
|
|
throw new ScpException(ResultCode.Exception, "0000", ex.ToString()); |
|
|
throw new ScpException(ResultCode.Exception, "0000", ex.ToString()); |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
if (ex.InnerException != null) throw ex.InnerException; |
|
|
if (ex.InnerException != null) |
|
|
|
|
|
{ |
|
|
|
|
|
LogHelper.Writlog(LogHelper.LogType.Error, typeof(SCP_TB_PRICE_CONTROLLER), "Get_TB_PRICE_List", ex.InnerException.Message.ToString()); |
|
|
|
|
|
throw ex.InnerException; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
catch (Exception e) |
|
|
catch (Exception e) |
|
|