DomainException Constructor (String, Int32, 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 that has the specified error message, a custom error code, and 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, _
errorCode As Integer, _
innerException As Exception _
)
'Usage
Dim message As String
Dim errorCode As Integer
Dim innerException As Exception
Dim instance As New DomainException(message, _
errorCode, innerException)
public DomainException(
string message,
int errorCode,
Exception innerException
)
public:
DomainException(
String^ message,
int errorCode,
Exception^ innerException
)
new :
message:string *
errorCode:int *
innerException:Exception -> DomainException
public function DomainException(
message : String,
errorCode : int,
innerException : Exception
)
Parameters
- message
Type: System.String
The localized error message.
- errorCode
Type: System.Int32
The custom error code for the exception.
- innerException
Type: System.Exception
The inner exception that is the cause of this exception.