Ejemplo n.º 1
0
 public void AddMenu(string cname, string iname, string createdBy = "admin")
 {
     try
     {
         handler.AddMenu(cname, iname, createdBy);
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception innerEx)
     {
         var exception = new LogisticException(BizErrorCode.SystemError, "添加菜单错误", innerEx);
         logger.Log(Level.Error, exception, "Error in AddMenu.");
         throw exception;
     }
 }