ODataErrorException Constructor (String, ODataError)
Creates a new instance of the ODataErrorException class with an error message and an ODataError object.
Namespace: Microsoft.Data.OData
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
error As ODataError _
)
'Usage
Dim message As String
Dim error As ODataError
Dim instance As New ODataErrorException(message, _
error)
public ODataErrorException(
string message,
ODataError error
)
public:
ODataErrorException(
String^ message,
ODataError^ error
)
new :
message:string *
error:ODataError -> ODataErrorException
public function ODataErrorException(
message : String,
error : ODataError
)
Parameters
- message
Type: System.String
The plain text error message for this exception.
- error
Type: Microsoft.Data.OData.ODataError
The ODataError instance representing the error read from the payload.