Share via


DataServiceRequestException Constructor (String)

Initializes a new instance of the DataServiceRequestException class with a specified message that describes the error.

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

Syntax

'Declaration
Public Sub New ( _
    message As String _
)
'Usage
Dim message As String 

Dim instance As New DataServiceRequestException(message)
public DataServiceRequestException(
    string message
)
public:
DataServiceRequestException(
    String^ message
)
new : 
        message:string -> DataServiceRequestException
public function DataServiceRequestException(
    message : String
)

Parameters

  • message
    Type: System.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.

Remarks

The following table shows the initial property values for an instance of DataServiceRequestException.

Property

Value

InnerException

nulla null reference (Nothing in Visual Basic).

Message

The error message string specified in message.

See Also

Reference

DataServiceRequestException Class

DataServiceRequestException Overload

System.Data.Services.Client Namespace

Other Resources

Handling and Throwing Exceptions