Share via


ODataError Class

Represents an error payload.

Inheritance Hierarchy

System.Object
  Microsoft.Data.OData.ODataAnnotatable
    Microsoft.Data.OData.ODataError

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

Syntax

'Declaration
<SerializableAttribute> _
<DebuggerDisplayAttribute("{ErrorCode}: {Message}")> _
Public NotInheritable Class ODataError _
    Inherits ODataAnnotatable
'Usage
Dim instance As ODataError
[SerializableAttribute]
[DebuggerDisplayAttribute("{ErrorCode}: {Message}")]
public sealed class ODataError : ODataAnnotatable
[SerializableAttribute]
[DebuggerDisplayAttribute(L"{ErrorCode}: {Message}")]
public ref class ODataError sealed : public ODataAnnotatable
[<SealedAttribute>]
[<SerializableAttribute>]
[<DebuggerDisplayAttribute("{ErrorCode}: {Message}")>]
type ODataError =  
    class 
        inherit ODataAnnotatable 
    end
public final class ODataError extends ODataAnnotatable

The ODataError type exposes the following members.

Constructors

  Name Description
Public method ODataError Creates a new instance of the ODataError class.

Top

Properties

  Name Description
Public property ErrorCode Gets or sets the error code to be used in payloads.
Public property InnerError Gets or sets the implementation specific debugging information to help determine the cause of the error.
Public property InstanceAnnotations Collection of custom instance annotations.
Public property Message Gets or sets the error message.
Public property MessageLanguage Gets or sets the language for the exception Message.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method GetAnnotation<T> Gets or sets the annotation by type. (Inherited from ODataAnnotatable.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method SetAnnotation<T> Sets an annotation of type T. (Inherited from ODataAnnotatable.)
Public method ToString (Inherited from Object.)

Top

Thread Safety

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

See Also

Reference

Microsoft.Data.OData Namespace