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 | |
---|---|---|
ODataError | Creates a new instance of the ODataError class. |
Top
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 | Collection of custom instance annotations. | |
Message | Gets or sets the error message. | |
MessageLanguage | Gets or sets the language for the exception Message. |
Top
Methods
Name | Description | |
---|---|---|
Equals | (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> | Sets an annotation of type T. (Inherited from ODataAnnotatable.) | |
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.