Jaa


ODataMessageWriter.WriteErrorAsync(ODataError, Boolean) Method

Definition

Asynchronously writes an ODataError as the message payload.

public System.Threading.Tasks.Task WriteErrorAsync (Microsoft.OData.ODataError error, bool includeDebugInformation);
member this.WriteErrorAsync : Microsoft.OData.ODataError * bool -> System.Threading.Tasks.Task
Public Function WriteErrorAsync (error As ODataError, includeDebugInformation As Boolean) As Task

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.

Returns

A task representing the asynchronous operation of writing the error.

Applies to