Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }