ODataMessageWriter.WriteErrorAsync(ODataError, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.