DataServiceClientException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DataServiceClientException() |
Initializes a new instance of the DataServiceClientException class with a system-supplied message that describes the error. |
DataServiceClientException(String) |
Initializes a new instance of the DataServiceClientException class with a specified message that describes the error. |
DataServiceClientException(String, Exception) |
Initializes a new instance of the DataServiceClientException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
DataServiceClientException(String, Int32) |
Initializes a new instance of the DataServiceClientException class. |
DataServiceClientException(String, Exception, Int32) |
Initializes a new instance of the DataServiceClientException class. |
DataServiceClientException()
Initializes a new instance of the DataServiceClientException class with a system-supplied message that describes the error.
public DataServiceClientException ();
Public Sub New ()
Applies to
DataServiceClientException(String)
Initializes a new instance of the DataServiceClientException class with a specified message that describes the error.
public DataServiceClientException (string message);
new Microsoft.OData.Client.DataServiceClientException : string -> Microsoft.OData.Client.DataServiceClientException
Public Sub New (message As String)
Parameters
- message
- String
The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.
Applies to
DataServiceClientException(String, Exception)
Initializes a new instance of the DataServiceClientException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public DataServiceClientException (string message, Exception innerException);
new Microsoft.OData.Client.DataServiceClientException : string * Exception -> Microsoft.OData.Client.DataServiceClientException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.
- innerException
- Exception
The exception that is the cause of the current exception. If the innerException
parameter is not null, the current exception is raised in a catch block that handles the inner exception.
Applies to
DataServiceClientException(String, Int32)
Initializes a new instance of the DataServiceClientException class.
public DataServiceClientException (string message, int statusCode);
new Microsoft.OData.Client.DataServiceClientException : string * int -> Microsoft.OData.Client.DataServiceClientException
Public Sub New (message As String, statusCode As Integer)
Parameters
- message
- String
The string value that contains the error message.
- statusCode
- Int32
The integer value that contains status code.
Applies to
DataServiceClientException(String, Exception, Int32)
Initializes a new instance of the DataServiceClientException class.
public DataServiceClientException (string message, Exception innerException, int statusCode);
new Microsoft.OData.Client.DataServiceClientException : string * Exception * int -> Microsoft.OData.Client.DataServiceClientException
Public Sub New (message As String, innerException As Exception, statusCode As Integer)
Parameters
- message
- String
The string value that contains the error message.
- innerException
- Exception
The System.Exception object that contains the inner exception.
- statusCode
- Int32
The integer value that contains status code.