DataServiceException Constructor (Int32, String, String, String, Exception)
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, _
errorCode As String, _
message As String, _
messageXmlLang As String, _
innerException As Exception _
)
'Usage
Dim statusCode As Integer
Dim errorCode As String
Dim message As String
Dim messageXmlLang As String
Dim innerException As Exception
Dim instance As New DataServiceException(statusCode, _
errorCode, message, messageXmlLang, _
innerException)
public DataServiceException(
int statusCode,
string errorCode,
string message,
string messageXmlLang,
Exception innerException
)
public:
DataServiceException(
int statusCode,
String^ errorCode,
String^ message,
String^ messageXmlLang,
Exception^ innerException
)
new :
statusCode:int *
errorCode:string *
message:string *
messageXmlLang:string *
innerException:Exception -> DataServiceException
public function DataServiceException(
statusCode : int,
errorCode : String,
message : String,
messageXmlLang : String,
innerException : Exception
)
Parameters
- statusCode
Type: System.Int32
The HTTP status code of the exception.
- errorCode
Type: System.String
The string value that contains the error code.
- message
Type: System.String
The string value that contains the error message.
- messageXmlLang
Type: System.String
The string value that indicates the language of the error message.
- innerException
Type: System.Exception
The exception that is the cause of the current exception.