Udostępnij za pośrednictwem


ODataException Class

Represents an exception in the OData library.

Inheritance Hierarchy

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

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

Syntax

'Declaration
<SerializableAttribute> _
Public Class ODataException _
    Inherits InvalidOperationException
'Usage
Dim instance As ODataException
[SerializableAttribute]
public class ODataException : InvalidOperationException
[SerializableAttribute]
public ref class ODataException : public InvalidOperationException
[<SerializableAttribute>]
type ODataException =  
    class 
        inherit InvalidOperationException 
    end
public class ODataException extends InvalidOperationException

The ODataException type exposes the following members.

Constructors

  Name Description
Public method ODataException() Creates a new instance of the ODataException class with default values.
Public method ODataException(String) Creates a new instance of the ODataException class with an error message.
Protected method ODataException(SerializationInfo, StreamingContext) Creates a new instance of the ODataException class from the specified SerializationInfo and StreamingContext instances.
Public method ODataException(String, Exception) Creates a new instance of the ODataException class with an error message and an inner exception.

Top

Properties

  Name Description
Public property Data (Inherited from Exception.)
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.)
Protected method Finalize (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.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Exception.)

Top

Events

  Name Description
Protected event SerializeObjectState (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