DataServiceTransportException Constructor
Constructs a new instance of DataServiceTransportException.
Namespace: System.Data.Services.Client
Assembly: Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)
Syntax
'Declaration
Public Sub New ( _
response As IODataResponseMessage, _
innerException As Exception _
)
'Usage
Dim response As IODataResponseMessage
Dim innerException As Exception
Dim instance As New DataServiceTransportException(response, _
innerException)
public DataServiceTransportException(
IODataResponseMessage response,
Exception innerException
)
public:
DataServiceTransportException(
IODataResponseMessage^ response,
Exception^ innerException
)
new :
response:IODataResponseMessage *
innerException:Exception -> DataServiceTransportException
public function DataServiceTransportException(
response : IODataResponseMessage,
innerException : Exception
)
Parameters
- response
Type: Microsoft.Data.OData.IODataResponseMessage
ResponseMessage from the exception so that the error payload can be read.
- innerException
Type: System.Exception
Actual exception that this exception is wrapping.