Share via


DtsTaskException Class

The exception that is thrown when an error occurs in a task.

Inheritance Hierarchy

System.Object
  System.Exception
    Microsoft.SqlServer.Dts.Runtime.DtsException
      Microsoft.SqlServer.Dts.Runtime.DtsTaskException

Namespace:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Class DtsTaskException _
    Inherits DtsException
'Usage
Dim instance As DtsTaskException
[SerializableAttribute]
public class DtsTaskException : DtsException
[SerializableAttribute]
public ref class DtsTaskException : public DtsException
[<SerializableAttribute>]
type DtsTaskException =  
    class 
        inherit DtsException 
    end
public class DtsTaskException extends DtsException

The DtsTaskException type exposes the following members.

Constructors

  Name Description
Public method DtsTaskException(COMException) Initializes a new instance of the DtsTaskException class with specified COM exception.
Public method DtsTaskException(String) Initializes a new instance of the DtsTaskException class.

Top

Properties

  Name Description
Public property Data (Inherited from Exception.)
Public property ErrorCode Gets the error code that creates the appropriate exception class. This field is read-only. (Inherited from DtsException.)
Public property HelpLink (Inherited from Exception.)
Public property HResult (Inherited from Exception.)
Public property InnerException (Inherited from Exception.)
Public property Message (Inherited from Exception.)
Public property Source (Inherited from Exception.)
Public property StackTrace (Inherited from Exception.)
Public property TargetSite (Inherited from Exception.)

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetBaseException (Inherited from Exception.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData Security Critical. (Inherited from Exception.)
Public method GetType (Inherited from Exception.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Exception.)

Top

Events

  Name Description
Protected event SerializeObjectState (Inherited from Exception.)

Top

Remarks

This class is instantiated by the DtsException class when an error occurs in a component.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SqlServer.Dts.Runtime Namespace