internal virtual void Register(RSException rsException, ObjectType objectType)
        {
            if (m_suspendErrors)
            {
                return;
            }
            m_hasError = true;
            if (m_messages == null)
            {
                m_messages = new ProcessingMessageList();
            }
            ProcessingMessage processingMessage = CreateProcessingMessage(rsException.Code, objectType, rsException.Message);

            m_messages.Add(processingMessage);
            for (rsException = (rsException.InnerException as RSException); rsException != null; rsException = (rsException.InnerException as RSException))
            {
                ProcessingMessage processingMessage2 = CreateProcessingMessage(rsException.Code, objectType, rsException.Message);
                if (processingMessage.ProcessingMessages == null)
                {
                    processingMessage.ProcessingMessages = new ProcessingMessageList(1);
                }
                processingMessage.ProcessingMessages.Add(processingMessage2);
                processingMessage = processingMessage2;
            }
        }
 internal DataSetPublishingResult(DataSetDefinition dataSetDefinition, DataSourceInfo dataSourceInfo, UserLocationFlags userReferenceLocation, ProcessingMessageList warnings)
 {
     m_dataSetDefinition     = dataSetDefinition;
     m_dataSourceInfo        = dataSourceInfo;
     m_userReferenceLocation = userReferenceLocation;
     m_warnings = warnings;
 }
示例#3
0
 internal override ProcessingMessage Register(ProcessingErrorCode code, Severity severity, ObjectType objectType, string objectName, string propertyName, ProcessingMessageList innerMessages, params string[] arguments)
 {
     try
     {
         Monitor.Enter(this);
         if (severity == Severity.Error)
         {
             m_hasError = true;
         }
         if (RegisterItem(severity, code, objectType, objectName))
         {
             if (m_messages == null)
             {
                 m_messages = new ProcessingMessageList();
             }
             ProcessingMessage processingMessage = ErrorContext.CreateProcessingMessage(code, severity, objectType, objectName, propertyName, innerMessages, arguments);
             m_messages.Add(processingMessage);
             return(processingMessage);
         }
         return(null);
     }
     finally
     {
         Monitor.Exit(this);
     }
 }
 internal ProcessingMessage(ErrorCode code, Severity severity, ObjectType objectType, string objectName, string propertyName, string message, ProcessingMessageList innerMessages)
 {
     m_code               = ProcessingErrorCode.rsNone;
     m_commonCode         = code;
     m_severity           = severity;
     m_objectType         = objectType;
     m_objectName         = objectName;
     m_propertyName       = propertyName;
     m_message            = message;
     m_processingMessages = innerMessages;
 }
 protected OnDemandProcessingResult(IChunkFactory createChunkFactory, bool hasDocumentMap, bool hasInteractivity, ParameterInfoCollection parameters, int autoRefresh, int numberOfPages, ProcessingMessageList warnings, bool eventInfoChanged, EventInformation newEventInfo, PaginationMode updatedPaginationMode, ReportProcessingFlags updatedProcessingFlags, UserProfileState usedUserProfileState, ExecutionLogContext executionLogContext)
 {
     m_createChunkFactory           = createChunkFactory;
     m_hasDocumentMap               = hasDocumentMap;
     m_numberOfPages                = numberOfPages;
     m_hasInteractivity             = hasInteractivity;
     m_parameters                   = parameters;
     m_autoRefresh                  = autoRefresh;
     m_warnings                     = warnings;
     m_eventInfoChanged             = eventInfoChanged;
     m_newEventInfo                 = newEventInfo;
     m_parameters                   = parameters;
     m_updatedPaginationMode        = updatedPaginationMode;
     m_updatedReportProcessingFlags = updatedProcessingFlags;
     m_usedUserProfileState         = usedUserProfileState;
     m_executionLogContext          = executionLogContext;
 }
        void IPersistable.Deserialize(Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Code:
                    m_code = (ProcessingErrorCode)reader.ReadEnum();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Severity:
                    m_severity = (Severity)reader.ReadEnum();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.ObjectType:
                    m_objectType = (ObjectType)reader.ReadEnum();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.ObjectName:
                    m_objectName = reader.ReadString();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.PropertyName:
                    m_propertyName = reader.ReadString();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Message:
                    m_message = reader.ReadString();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.ProcessingMessages:
                    m_processingMessages = reader.ReadListOfRIFObjects <ProcessingMessageList>();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.CommonCode:
                    m_commonCode = (ErrorCode)reader.ReadEnum();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
示例#7
0
 internal PublishingResult(string reportDescription, string reportLanguage, ParameterInfoCollection parameters, DataSourceInfoCollection dataSources, DataSetInfoCollection sharedDataSetReferences, ProcessingMessageList warnings, UserLocationFlags userReferenceLocation, double pageHeight, double pageWidth, double topMargin, double bottomMargin, double leftMargin, double rightMargin, ArrayList dataSetsName, bool hasExternalImages, bool hasHyperlinks, ReportProcessingFlags reportProcessingFlags, byte[] dataSetsHash)
 {
     m_reportDescription     = reportDescription;
     m_reportLanguage        = reportLanguage;
     m_parameters            = parameters;
     m_dataSources           = dataSources;
     m_sharedDataSets        = sharedDataSetReferences;
     m_warnings              = warnings;
     m_userReferenceLocation = userReferenceLocation;
     m_hasExternalImages     = hasExternalImages;
     m_hasHyperlinks         = hasHyperlinks;
     m_reportProcessingFlags = reportProcessingFlags;
     m_dataSetsHash          = dataSetsHash;
     m_pageProperties        = new PageProperties(pageHeight, pageWidth, topMargin, bottomMargin, leftMargin, rightMargin);
     if (dataSetsName != null && dataSetsName.Count > 0)
     {
         m_dataSetsName = (string[])dataSetsName.ToArray(typeof(string));
     }
 }
示例#8
0
 internal void Combine(ProcessingMessageList messages)
 {
     if (messages == null)
     {
         return;
     }
     for (int i = 0; i < messages.Count; i++)
     {
         ProcessingMessage processingMessage = messages[i];
         if (processingMessage.Severity == Severity.Error)
         {
             m_hasError = true;
         }
         if (RegisterItem(processingMessage.Severity, processingMessage.Code, processingMessage.ObjectType, processingMessage.ObjectName))
         {
             if (m_messages == null)
             {
                 m_messages = new ProcessingMessageList();
             }
             m_messages.Add(processingMessage);
         }
     }
 }
 internal abstract ProcessingMessage Register(ProcessingErrorCode code, Severity severity, ObjectType objectType, string objectName, string propertyName, ProcessingMessageList innerMessages, params string[] arguments);
示例#10
0
 public DataSetPublishingException(ProcessingMessageList messages)
     : base(messages)
 {
 }
示例#11
0
 internal ReportProcessingException(Exception innerException, ProcessingMessageList processingMessages)
     : base(ErrorCode.rsInternalError, RPRes.Keys.GetString(ErrorCode.rsUnexpectedError.ToString()), innerException, Global.Tracer, null)
 {
     m_processingMessages = processingMessages;
 }
示例#12
0
 protected ReportProcessingException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     m_processingMessages = (ProcessingMessageList)info.GetValue("ProcessingMessages", typeof(ProcessingMessageList));
     m_useMessageListForExceptionMessage = info.GetBoolean("UseMessageListForExeptionMessage");
 }
示例#13
0
 public ReportPublishingException(ProcessingMessageList messages, Exception innerException, ReportProcessingFlags processingFlags)
     : base(messages, innerException)
 {
     m_processingFlags = processingFlags;
 }
示例#14
0
 internal FullOnDemandProcessingResult(Microsoft.ReportingServices.ReportIntermediateFormat.ReportSnapshot newOdpSnapshot, Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.ChunkManager.OnDemandProcessingManager chunkManager, bool newOdpSnapshotChanged, IChunkFactory createChunkFactory, ParameterInfoCollection parameters, int autoRefresh, int numberOfPages, ProcessingMessageList warnings, bool eventInfoChanged, EventInformation newEventInfo, PaginationMode updatedPaginationMode, ReportProcessingFlags updatedProcessingFlags, UserProfileState usedUserProfileState, ExecutionLogContext executionLogContext)
     : base(createChunkFactory, newOdpSnapshot.DefinitionTreeHasDocumentMap, newOdpSnapshot.HasShowHide || newOdpSnapshot.HasUserSortFilter, parameters, autoRefresh, numberOfPages, warnings, eventInfoChanged, newEventInfo, updatedPaginationMode, updatedProcessingFlags, usedUserProfileState, executionLogContext)
 {
     m_chunkManager    = chunkManager;
     m_snapshotChanged = newOdpSnapshotChanged;
 }
示例#15
0
 internal ReportProcessingException(ProcessingMessageList processingMessages, Exception innerException)
     : base(ErrorCode.rsProcessingError, RPRes.Keys.GetString(ErrorCode.rsProcessingError.ToString()), innerException, Global.Tracer, null)
 {
     m_useMessageListForExceptionMessage = true;
     m_processingMessages = processingMessages;
 }
 internal YukonProcessingResult(ReportSnapshot newSnapshot, ChunkManager.ProcessingChunkManager chunkManager, IChunkFactory createChunkFactory, ParameterInfoCollection parameters, int autoRefresh, int numberOfPages, ProcessingMessageList warnings, bool renderingInfoChanged, RenderingInfoManager renderingInfoManager, bool eventInfoChanged, EventInformation newEventInfo, PaginationMode updatedPaginationMode, ReportProcessingFlags updatedProcessingFlags, UserProfileState usedUserProfileState, ExecutionLogContext executionLogContext)
     : base(createChunkFactory, newSnapshot.HasDocumentMap, newSnapshot.HasShowHide, parameters, autoRefresh, numberOfPages, warnings, eventInfoChanged, newEventInfo, updatedPaginationMode, updatedProcessingFlags, usedUserProfileState, executionLogContext)
 {
     m_snapshotChanged = Initialize(newSnapshot, chunkManager, renderingInfoChanged, renderingInfoManager);
 }
 internal YukonProcessingResult(bool renderingInfoChanged, IChunkFactory createChunkFactory, bool hasInteractivity, RenderingInfoManager renderingInfoManager, bool eventInfoChanged, EventInformation newEventInfo, ParameterInfoCollection parameters, ProcessingMessageList warnings, int autoRefresh, int numberOfPages, PaginationMode updatedPaginationMode, ReportProcessingFlags updatedProcessingFlags, UserProfileState usedUserProfileState, ExecutionLogContext executionLogContext)
     : base(createChunkFactory, hasDocumentMap: false, hasInteractivity, parameters, autoRefresh, numberOfPages, warnings, eventInfoChanged, newEventInfo, updatedPaginationMode, updatedProcessingFlags, usedUserProfileState, executionLogContext)
 {
     m_snapshotChanged = Initialize(null, null, renderingInfoChanged, renderingInfoManager);
 }
 internal YukonProcessingResult(ReportSnapshot newSnapshot, ChunkManager.ProcessingChunkManager chunkManager, ParameterInfoCollection parameters, int autoRefresh, int numberOfPages, ProcessingMessageList warnings, ReportProcessingFlags updatedProcessingFlags, UserProfileState usedUserProfileState, ExecutionLogContext executionLogContext)
     : base(null, newSnapshot.HasDocumentMap, newSnapshot.HasShowHide, parameters, autoRefresh, numberOfPages, warnings, eventInfoChanged: false, null, PaginationMode.Progressive, updatedProcessingFlags, usedUserProfileState, executionLogContext)
 {
     m_snapshotChanged = Initialize(newSnapshot, chunkManager, renderingInfoChanged: false, null);
 }
        internal static ProcessingMessage CreateProcessingMessage(ProcessingErrorCode code, Severity severity, ObjectType objectType, string objectName, string propertyName, ProcessingMessageList innerMessages, params string[] arguments)
        {
            objectName   = objectName.MarkAsPrivate();
            propertyName = propertyName.MarkAsPrivate();
            object[] messageArgs = GetMessageArgs(objectType, objectName, propertyName, arguments);
            string   message     = string.Format(CultureInfo.CurrentCulture, RPRes.Keys.GetString(code.ToString()), messageArgs);

            return(new ProcessingMessage(code, severity, objectType, objectName, propertyName, message, innerMessages));
        }
示例#20
0
 internal ReportProcessingException(ProcessingMessageList processingMessages)
     : this(processingMessages, null)
 {
 }