ODataMessageWriter.WriteError(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.
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.