Partilhar via


ODataException Constructor (String, Exception)

Creates a new instance of the ODataException class with an error message and an inner exception.

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

Syntax

'Declaration
Public Sub New ( _
    message As String, _
    innerException As Exception _
)
'Usage
Dim message As String 
Dim innerException As Exception 

Dim instance As New ODataException(message, _
    innerException)
public ODataException(
    string message,
    Exception innerException
)
public:
ODataException(
    String^ message, 
    Exception^ innerException
)
new : 
        message:string * 
        innerException:Exception -> ODataException
public function ODataException(
    message : String, 
    innerException : Exception
)

Parameters

  • message
    Type: System.String
    The plain text error message for this exception.
  • innerException
    Type: System.Exception
    The inner exception that is the cause of this exception to be thrown.

See Also

Reference

ODataException Class

ODataException Overload

Microsoft.Data.OData Namespace