private void WriteInStreamErrorImplementation(ODataError error, bool includeDebugInformation) { if (this.outputInStreamErrorListener != null) { this.outputInStreamErrorListener.OnInStreamError(); } ODataAtomWriterUtils.WriteError(this.xmlWriter, error, includeDebugInformation, base.MessageWriterSettings.MessageQuotas.MaxNestingDepth); }
/// <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(); }
internal void WriteTopLevelError(ODataError error, bool includeDebugInformation) { this.WritePayloadStart(); ODataAtomWriterUtils.WriteError(this.XmlWriter, error, includeDebugInformation, base.MessageWriterSettings.MessageQuotas.MaxNestingDepth); this.WritePayloadEnd(); }