Beispiel #1
0
 /// <summary>
 /// 输出日志
 /// </summary>
 private void WriteExpLog(Exception ex, string message, bool IsInfo)
 {
     if (null != ex as OybabException)
     {
         if ((ex as OybabException).HasWrite == false)
         {
             if (IsInfo)
             {
                 ExceptionPro.ExpInfoLog(message);
             }
             else
             {
                 ExceptionPro.ExpErrorLog(message);
             }
         }
     }
     else
     {
         if (IsInfo)
         {
             ExceptionPro.ExpInfoLog(message);
         }
         else
         {
             ExceptionPro.ExpErrorLog(message);
         }
     }
     HasWrite = true;
 }
Beispiel #2
0
 public OybabException(string message, Exception ex, bool IsInfo = false)
     : base(message, ex)
 {
     ExceptionMessage = ExceptionPro.HandleExceptionType(ex, message, ExceptionMessage);
     WriteExpLog(ex, message + ex.ToString(), IsInfo);
 }
Beispiel #3
0
 public OybabException(Exception ex, bool IsInfo = false)
     : base(null, ex)
 {
     ExceptionMessage = ExceptionPro.HandleExceptionType(ex, null, ExceptionMessage);
     WriteExpLog(ex, ex.ToString(), IsInfo);
 }