Share via


ODataError Class

 

Provides a class representing an error payload.

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

Inheritance Hierarchy

System.Object
  Microsoft.OData.Core.ODataAnnotatable
    Microsoft.OData.Core.ODataError

Syntax

[DebuggerDisplayAttribute("{ErrorCode}: {Message}")]
public sealed class ODataError : ODataAnnotatable
[DebuggerDisplayAttribute("{ErrorCode}: {Message}")]
public ref class ODataError sealed : ODataAnnotatable
[<Sealed>]
[<DebuggerDisplayAttribute("{ErrorCode}: {Message}")>]
type ODataError = 
    class
        inherit ODataAnnotatable
    end
<DebuggerDisplayAttribute("{ErrorCode}: {Message}")>
Public NotInheritable Class ODataError
    Inherits ODataAnnotatable

Constructors

Name Description
System_CAPS_pubmethod ODataError()

Initializes a new instance of the ODataError class.

Properties

Name Description
System_CAPS_pubproperty ErrorCode

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

System_CAPS_pubproperty InnerError

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

System_CAPS_pubproperty InstanceAnnotations

Gets or sets the collection of custom instance annotations.

System_CAPS_pubproperty Message

Gets or sets the error message.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetAnnotation<T>()

Gets or sets the annotation by type.(Inherited from ODataAnnotatable.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod SetAnnotation<T>(T)

Sets an annotation of type T.(Inherited from ODataAnnotatable.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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

Microsoft.OData.Core Namespace

Return to top