Exemple #1
0
        protected override XmlNode AddMoreInformationForThis(XmlDocument doc, XmlNode parent, StringBuilder errorMsgBuilder)
        {
            if (this.m_processingMessages == null)
            {
                return(base.AddMoreInformationForThis(doc, parent, errorMsgBuilder));
            }
            bool flag = false;

            foreach (ProcessingMessage processingMessage3 in this.m_processingMessages)
            {
                if (processingMessage3.Severity == Severity.Error)
                {
                    flag = true;
                    break;
                }
            }
            if (!flag)
            {
                return(base.AddMoreInformationForThis(doc, parent, errorMsgBuilder));
            }
            XmlNode xmlNode = RSException.CreateMoreInfoNode(this.Source, doc, parent);

            foreach (ProcessingMessage processingMessage4 in this.m_processingMessages)
            {
                if (processingMessage4.Severity == Severity.Error && xmlNode != null)
                {
                    string text     = ReportProcessingException.CodeFromMessage(processingMessage4);
                    string helpLink = base.CreateHelpLink(typeof(RPRes).FullName, text);
                    RSException.AddMessageToMoreInfoNode(doc, xmlNode, text, processingMessage4.Message, helpLink);
                }
            }
            return(xmlNode);
        }
Exemple #2
0
        protected override List <AdditionalMessage> GetAdditionalMessages()
        {
            if (this.m_processingMessages == null)
            {
                return(null);
            }
            List <AdditionalMessage> list = new List <AdditionalMessage>(this.m_processingMessages.Count);

            foreach (ProcessingMessage processingMessage in this.m_processingMessages)
            {
                list.Add(new AdditionalMessage(ReportProcessingException.CodeFromMessage(processingMessage), processingMessage.Severity.ToString(), processingMessage.Message, processingMessage.ObjectType.ToString(), processingMessage.ObjectName, processingMessage.PropertyName, null));
            }
            return(list);
        }
Exemple #3
0
 protected override void AddWarnings(XmlDocument doc, XmlNode parent)
 {
     if (this.m_processingMessages != null)
     {
         foreach (ProcessingMessage processingMessage in this.m_processingMessages)
         {
             if (processingMessage.Severity == Severity.Warning)
             {
                 string code = ReportProcessingException.CodeFromMessage(processingMessage);
                 RSException.AddWarningNode(doc, parent, code, processingMessage.Severity.ToString(), processingMessage.ObjectName, processingMessage.ObjectType.ToString(), processingMessage.Message);
             }
         }
     }
 }