Ejemplo 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);
        }
Ejemplo n.º 2
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();
 }
Ejemplo 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());
        }