private void HandleSqlError(SqlTypeException sqlTypeException) { ExTraceGlobals.ReportingWebServiceTracer.TraceError <string>(0L, "SqlTypeException. Message: {0}", sqlTypeException.Message); LocalizedException localizedException = SqlErrorHandler.TrasnlateError(sqlTypeException); this.TaskContext.WriteError(localizedException, ExchangeErrorCategory.ServerOperation, null); }
private void HandleSqlError(SqlException sqlException) { this.TraceSqlException(sqlException); if (SqlErrorHandler.IsObjectNotFoundError(sqlException)) { this.TaskContext.WriteWarning(Strings.WarningReportNotAvailable); return; } LocalizedException localizedException = SqlErrorHandler.TrasnlateError(sqlException); this.TaskContext.WriteError(localizedException, ExchangeErrorCategory.ServerOperation, null); }