Exemplo n.º 1
0
        private bool ReadNextAndCheckForInStreamError()
        {
            bool flag = this.ReadInternal(true);

            if ((!this.disableInStreamErrorDetection && (this.NodeType == XmlNodeType.Element)) && (this.LocalNameEquals(this.ODataErrorElementName) && this.NamespaceEquals(this.ODataMetadataNamespace)))
            {
                throw new ODataErrorException(ODataAtomErrorDeserializer.ReadErrorElement(this, this.maxInnerErrorDepth));
            }
            return(flag);
        }
 /// <summary>
 /// Read a top-level error.
 /// </summary>
 /// <returns>An <see cref="ODataError"/> representing the read error.</returns>
 private ODataError ReadErrorImplementation()
 {
     ODataAtomErrorDeserializer atomErrorDeserializer = new ODataAtomErrorDeserializer(this);
     return atomErrorDeserializer.ReadTopLevelError();
 }
Exemplo n.º 3
0
        /// <summary>
        /// Read a top-level error.
        /// </summary>
        /// <returns>An <see cref="ODataError"/> representing the read error.</returns>
        private ODataError ReadErrorImplementation()
        {
            ODataAtomErrorDeserializer atomErrorDeserializer = new ODataAtomErrorDeserializer(this);

            return(atomErrorDeserializer.ReadTopLevelError());
        }