DataServiceException Constructor (Int32, String)
Initializes a new instance of the DataServiceException class.
Namespace: System.Data.Services
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Syntax
'Declaration
Public Sub New ( _
statusCode As Integer, _
message As String _
)
'Usage
Dim statusCode As Integer
Dim message As String
Dim instance As New DataServiceException(statusCode, _
message)
public DataServiceException(
int statusCode,
string message
)
public:
DataServiceException(
int statusCode,
String^ message
)
new :
statusCode:int *
message:string -> DataServiceException
public function DataServiceException(
statusCode : int,
message : String
)
Parameters
- statusCode
Type: System.Int32
The HTTP status code returned by the exception.
- message
Type: System.String
The error message for the exception.