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 | |
---|---|---|
ODataError() | Initializes a new instance of the ODataError class. |
Properties
Name | Description | |
---|---|---|
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 | Gets or sets the collection of custom instance annotations. |
|
Message | Gets or sets the error message. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
GetAnnotation<T>() | Gets or sets the annotation by type.(Inherited from ODataAnnotatable.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
SetAnnotation<T>(T) | Sets an annotation of type T.(Inherited from ODataAnnotatable.) |
|
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