ODataErrorException Constructor (String, Exception, ODataError)
Creates a new instance of the ODataErrorException class with an error message, an inner exception, 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, _
innerException As Exception, _
error As ODataError _
)
'Usage
Dim message As String
Dim innerException As Exception
Dim error As ODataError
Dim instance As New ODataErrorException(message, _
innerException, error)
public ODataErrorException(
string message,
Exception innerException,
ODataError error
)
public:
ODataErrorException(
String^ message,
Exception^ innerException,
ODataError^ error
)
new :
message:string *
innerException:Exception *
error:ODataError -> ODataErrorException
public function ODataErrorException(
message : String,
innerException : Exception,
error : ODataError
)
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.
- error
Type: Microsoft.Data.OData.ODataError
The ODataError instance representing the error read from the payload.