Share via


ODataErrorException Class

Represents an in-stream error parsed when reading a payload.

Inheritance Hierarchy

System.Object
  System.Exception
    System.SystemException
      System.InvalidOperationException
        Microsoft.Data.OData.ODataException
          Microsoft.Data.OData.ODataErrorException

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

Syntax

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

The ODataErrorException type exposes the following members.

Constructors

  Name Description
Public method ODataErrorException() Creates a new instance of the ODataErrorException class with default values.
Public method ODataErrorException(String) Creates a new instance of the ODataErrorException class with an error message.
Public method ODataErrorException(ODataError) Creates a new instance of the ODataErrorException class with an ODataError object.
Public method ODataErrorException(String, ODataError) Creates a new instance of the ODataErrorException class with an error message and an ODataError object.
Public method ODataErrorException(String, Exception) Creates a new instance of the ODataErrorException class with an error message and an inner exception.
Public method ODataErrorException(String, Exception, ODataError) Creates a new instance of the ODataErrorException class with an error message, an inner exception, and an ODataError object.

Top

Properties

  Name Description
Public property Data (Inherited from Exception.)
Public property Error Gets or sets the ODataError instance representing the error read from the payload.
Public property HelpLink (Inherited from Exception.)
Public property HResult (Inherited from Exception.)
Public property InnerException (Inherited from Exception.)
Public property Message (Inherited from Exception.)
Public property Source (Inherited from Exception.)
Public property StackTrace (Inherited from Exception.)
Public property TargetSite (Inherited from Exception.)

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method GetBaseException (Inherited from Exception.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData Security Critical. (Inherited from Exception.)
Public method GetType (Inherited from Exception.)
Public method ToString (Inherited from Exception.)

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