Exemplo n.º 1
0
        internal static Exception ExceptionOnError(XmlaResult res)
        {
            XmlaException ex = new XmlaException(res);

            if (res.ContainsInvalidSessionError)
            {
                return(new XmlaStreamException(ex));
            }
            return(ex);
        }
        private bool CheckForMessages()
        {
            XmlaMessageCollection xmlaMessageCollection = null;

            if (!XmlaClient.CheckForMessages(this.xmlReader, ref xmlaMessageCollection))
            {
                return(false);
            }
            XmlaResult currentResult = this.CurrentResult;

            foreach (XmlaMessage item in ((IEnumerable)xmlaMessageCollection))
            {
                currentResult.Messages.Add(item);
            }
            return(true);
        }
Exemplo n.º 3
0
 internal void Add(XmlaResult item)
 {
     this.items.Add(item);
 }
 internal XmlaException(XmlaResult result)
 {
     this.m_results = new XmlaResultCollection();
     this.m_results.Add(result);
 }