DtsTaskException Constructors

Definition

Initializes a new instance of the DtsTaskException class.

Overloads

DtsTaskException(COMException)

Initializes a new instance of the DtsTaskException class with specified COM exception.

DtsTaskException(String)

Initializes a new instance of the DtsTaskException class.

DtsTaskException(COMException)

Initializes a new instance of the DtsTaskException class with specified COM exception.

public:
 DtsTaskException(System::Runtime::InteropServices::COMException ^ originalException);
public DtsTaskException (System.Runtime.InteropServices.COMException originalException);
new Microsoft.SqlServer.Dts.Runtime.DtsTaskException : System.Runtime.InteropServices.COMException -> Microsoft.SqlServer.Dts.Runtime.DtsTaskException
Public Sub New (originalException As COMException)

Parameters

originalException
COMException

The COM exception.

Remarks

If your custom component has a COM exception that causes DtsTaskException to be thrown, wrap the exception with this constructor that takes the COM exception through the originalException parameter.

Applies to

DtsTaskException(String)

Initializes a new instance of the DtsTaskException class.

public:
 DtsTaskException(System::String ^ message);
public DtsTaskException (string message);
new Microsoft.SqlServer.Dts.Runtime.DtsTaskException : string -> Microsoft.SqlServer.Dts.Runtime.DtsTaskException
Public Sub New (message As String)

Parameters

message
String

A string that contains the error condition.

Remarks

This constructor is used when your custom task throws an exception and you have a string description of the error condition.

Applies to