public void ThrowException(string message, DOTNETSAPErrorSeverity severity) { this.LogError(message, severity); if (exceptionDelegeted) { throw new Exception(message); } }
public void ThrowException(Exception ex, DOTNETSAPErrorSeverity severity) { this.LogError(ex, severity); if (exceptionDelegeted) { throw ex; } }
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); }
public abstract void LogError(string errorMessage, DOTNETSAPErrorSeverity severity);