Share via


DomainException Constructor (String, Exception)

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Initializes a new instance of the DomainException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Namespace:  System.ServiceModel.DomainServices.Server
Assembly:  System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)

Syntax

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

Dim instance As New DomainException(message, _
    innerException)
public DomainException(
    string message,
    Exception innerException
)
public:
DomainException(
    String^ message, 
    Exception^ innerException
)
new : 
        message:string * 
        innerException:Exception -> DomainException
public function DomainException(
    message : String, 
    innerException : Exception
)

Parameters

  • innerException
    Type: System.Exception
    The inner exception that is the cause of this exception.

See Also

Reference

DomainException Class

DomainException Overload

System.ServiceModel.DomainServices.Server Namespace