Share via


DataServiceException Constructor (String)

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

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

Syntax

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

Dim instance As New DataServiceException(message)
public DataServiceException(
    string message
)
public:
DataServiceException(
    String^ message
)
new : 
        message:string -> DataServiceException
public function DataServiceException(
    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.

Remarks

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

Property

Value

InnerException

nulla null reference (Nothing in Visual Basic).

Message

The error message string specified in message.

See Also

Reference

DataServiceException Class

DataServiceException Overload

System.Data.Services Namespace

Other Resources

Handling and Throwing Exceptions