DataServiceRequestException 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
DataServiceRequestException() |
Initializes a new instance of the DataServiceRequestException class with a system-supplied message that describes the error. |
DataServiceRequestException(String) |
Initializes a new instance of the DataServiceRequestException class with a specified message that describes the error. |
DataServiceRequestException(String, Exception) |
Initializes a new instance of the DataServiceRequestException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
DataServiceRequestException(String, Exception, DataServiceResponse) |
Initializes a new instance of the DataServiceRequestException class. |
DataServiceRequestException()
Initializes a new instance of the DataServiceRequestException class with a system-supplied message that describes the error.
public DataServiceRequestException ();
Public Sub New ()
Applies to
DataServiceRequestException(String)
Initializes a new instance of the DataServiceRequestException class with a specified message that describes the error.
public DataServiceRequestException (string message);
new Microsoft.OData.Client.DataServiceRequestException : string -> Microsoft.OData.Client.DataServiceRequestException
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.The error message text.
Applies to
DataServiceRequestException(String, Exception)
Initializes a new instance of the DataServiceRequestException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public DataServiceRequestException (string message, Exception innerException);
new Microsoft.OData.Client.DataServiceRequestException : string * Exception -> Microsoft.OData.Client.DataServiceRequestException
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
DataServiceRequestException(String, Exception, DataServiceResponse)
Initializes a new instance of the DataServiceRequestException class.
public DataServiceRequestException (string message, Exception innerException, Microsoft.OData.Client.DataServiceResponse response);
new Microsoft.OData.Client.DataServiceRequestException : string * Exception * Microsoft.OData.Client.DataServiceResponse -> Microsoft.OData.Client.DataServiceRequestException
Public Sub New (message As String, innerException As Exception, response As DataServiceResponse)
Parameters
- message
- String
Error message text.
- innerException
- Exception
Exception object that contains the inner exception.
- response
- DataServiceResponse
DataServiceResponse object.