ConnectionDialogException Constructor (String, Exception)
Initializes a new instance of the ConnectionDialogException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Namespace: Microsoft.SqlServer.Management.UI.ConnectionDlg
Assembly: ConnectionDlg (in ConnectionDlg.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
previous As Exception _
)
'Usage
Dim message As String
Dim previous As Exception
Dim instance As New ConnectionDialogException(message, _
previous)
public ConnectionDialogException(
string message,
Exception previous
)
public:
ConnectionDialogException(
String^ message,
Exception^ previous
)
new :
message:string *
previous:Exception -> ConnectionDialogException
public function ConnectionDialogException(
message : String,
previous : Exception
)
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.
- previous
Type: System.Exception
The exception that is the cause of the current exception. If the innerException parameter is not nulla null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.