ODataErrorException Constructor (ODataError)
Creates a new instance of the ODataErrorException class with an ODataError object.
Namespace: Microsoft.Data.OData
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
Public Sub New ( _
error As ODataError _
)
'Usage
Dim error As ODataError
Dim instance As New ODataErrorException(error)
public ODataErrorException(
ODataError error
)
public:
ODataErrorException(
ODataError^ error
)
new :
error:ODataError -> ODataErrorException
public function ODataErrorException(
error : ODataError
)
Parameters
- error
Type: Microsoft.Data.OData.ODataError
The ODataError instance representing the error read from the payload.
Remarks
The Message property is initialized to a system-supplied message that describes the error. This message takes into account the current system culture.