Share via


ODataError Class

Definition

Class representing an error payload.

public sealed class ODataError : Microsoft.OData.ODataAnnotatable
type ODataError = class
    inherit ODataAnnotatable
Public NotInheritable Class ODataError
Inherits ODataAnnotatable
Inheritance

Constructors

ODataError()

Properties

Details

A collection of JSON objects that MUST contain name/value pairs for code and message, and MAY contain a name/value pair for target, as described above.

ErrorCode

Gets or sets the error code to be used in payloads.

InnerError

Gets or sets the implementation specific debugging information to help determine the cause of the error.

InstanceAnnotations

Collection of custom instance annotations.

Message

Gets or sets the error message.

Target

Gets or sets the target of the particular error.

TypeAnnotation

The annotation for storing @odata.type.

(Inherited from ODataAnnotatable)

Methods

ToString()

Serialization to Json format string representing the error object.

Applies to