Jaa


ODataMessageWriter.WriteError(ODataError, Boolean) Method

Definition

Writes an ODataError as the message payload.

public void WriteError (Microsoft.OData.ODataError error, bool includeDebugInformation);
member this.WriteError : Microsoft.OData.ODataError * bool -> unit
Public Sub WriteError (error As ODataError, includeDebugInformation As Boolean)

Parameters

error
ODataError

The error to write.

includeDebugInformation
Boolean

A flag indicating whether debug information (for example, the inner error from the error) should be included in the payload. This should only be used in debug scenarios.

Applies to