ODataError Class

Represents an error payload.

Namespace:  Microsoft.Data.OData
Assembly:  Microsoft.Data.OData (in Microsoft.Data.OData.dll)

[SerializableAttribute]
[DebuggerDisplayAttribute(L"{ErrorCode}: {Message}")]
public ref class ODataError sealed : public ODataAnnotatable

The ODataError type exposes the following members.

  NameDescription
Public methodODataErrorCreates a new instance of the ODataError class.
Top

  NameDescription
Public propertyErrorCodeGets or sets the error code to be used in payloads.
Public propertyInnerErrorGets or sets the implementation specific debugging information to help determine the cause of the error.
Public propertyInstanceAnnotationsCollection of custom instance annotations.
Public propertyMessageGets or sets the error message.
Public propertyMessageLanguageGets or sets the language for the exception Message.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetAnnotation<T>Gets or sets the annotation by type. (Inherited from ODataAnnotatable.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodSetAnnotation<T>Sets an annotation of type T. (Inherited from ODataAnnotatable.)
Public methodToString (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: