Пример #1
0
 public RSException(ErrorCode errorCode, string localizedMessage, Exception innerException, RSTrace tracer, string additionalTraceMessage, params object[] exceptionData)
     : this(errorCode, localizedMessage, innerException, tracer, additionalTraceMessage, TraceLevel.Error, exceptionData)
 {
 }
Пример #2
0
 public RSException(ErrorCode errorCode, string localizedMessage, Exception innerException, RSTrace tracer, string additionalTraceMessage, TraceLevel traceLevel, params object[] exceptionData)
     : base($"{localizedMessage}{(innerException!=null? $"{Environment.NewLine}{innerException.Message}":"")}", innerException)
 {
     this.m_ErrorCode       = errorCode;
     this.m_ProductLocaleID = CultureInfo.CurrentCulture.LCID;
     this.m_CountryLocaleID = CultureInfo.InstalledUICulture.LCID;
     this.m_OS = AspNetCore.ReportingServices.Diagnostics.Utilities.OperatingSystem.OsIndependent;
     this.m_AdditionalTraceMessage = additionalTraceMessage;
     this.m_tracer        = tracer;
     this.m_traceLevel    = traceLevel;
     this.m_exceptionData = exceptionData;
     this.Trace();
     this.OnExceptionCreated();
 }
Пример #3
0
 public RSTrace(string componentName)
 {
     this.m_ComponentName       = componentName.ToLowerInvariant();
     this.m_componentTraceLevel = RSTrace.GetTraceLevel(this.m_ComponentName);
 }