示例#1
0
 public void ThrowException(string message, DOTNETSAPErrorSeverity severity)
 {
     this.LogError(message, severity);
     if (exceptionDelegeted)
     {
         throw new Exception(message);
     }
 }
示例#2
0
 public void ThrowException(Exception ex, DOTNETSAPErrorSeverity severity)
 {
     this.LogError(ex, severity);
     if (exceptionDelegeted)
     {
         throw ex;
     }
 }
示例#3
0
        public void LogError(Exception ex, DOTNETSAPErrorSeverity severity)
        {
            string errorMessage = ex.Message + " - " + ex.StackTrace != null ? string.Empty : ex.StackTrace.ToString();

            if (ex.InnerException != null)
            {
                errorMessage += " " + ex.InnerException.Message + " - " + ex.InnerException.StackTrace != null ? string.Empty : ex.InnerException.StackTrace.ToString();
            }

            this.LogError(errorMessage, severity);
        }
示例#4
0
 public abstract void LogError(string errorMessage, DOTNETSAPErrorSeverity severity);