예제 #1
0
 private void WriteInStreamErrorImplementation(ODataError error, bool includeDebugInformation)
 {
     if (this.outputInStreamErrorListener != null)
     {
         this.outputInStreamErrorListener.OnInStreamError();
     }
     ODataAtomWriterUtils.WriteError(this.xmlWriter, error, includeDebugInformation, base.MessageWriterSettings.MessageQuotas.MaxNestingDepth);
 }
예제 #2
0
        /// <summary>
        /// Writes a top-level error payload.
        /// </summary>
        /// <param name="error">The error instance to write.</param>
        /// <param name="includeDebugInformation">A flag indicating whether error details should be written (in debug mode only) or not.</param>
        internal void WriteTopLevelError(ODataError error, bool includeDebugInformation)
        {
            Debug.Assert(this.MessageWriterSettings != null, "this.MessageWriterSettings != null");
            DebugUtils.CheckNoExternalCallers();

            this.WritePayloadStart();
            ODataAtomWriterUtils.WriteError(this.XmlWriter, error, includeDebugInformation, this.MessageWriterSettings.MessageQuotas.MaxNestingDepth);
            this.WritePayloadEnd();
        }
예제 #3
0
 internal void WriteTopLevelError(ODataError error, bool includeDebugInformation)
 {
     this.WritePayloadStart();
     ODataAtomWriterUtils.WriteError(this.XmlWriter, error, includeDebugInformation, base.MessageWriterSettings.MessageQuotas.MaxNestingDepth);
     this.WritePayloadEnd();
 }