Freigeben über


DtsException-Klasse

Defines a generic exception class that, depending on the error code returned, creates a class specific to the type of exception that occurred.

Vererbungshierarchie

System.Object
  System.Exception
    Microsoft.SqlServer.Dts.Runtime.DtsException
      Mehr…

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

Syntax

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

Der DtsException-Typ macht folgende Elemente verfügbar.

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Data (Geerbt von Exception.)
Öffentliche Eigenschaft ErrorCode Gets the error code that creates the appropriate exception class. This field is read-only.
Öffentliche Eigenschaft HelpLink (Geerbt von Exception.)
Öffentliche Eigenschaft HResult (Geerbt von Exception.)
Öffentliche Eigenschaft InnerException (Geerbt von Exception.)
Öffentliche Eigenschaft Message (Geerbt von Exception.)
Öffentliche Eigenschaft Source (Geerbt von Exception.)
Öffentliche Eigenschaft StackTrace (Geerbt von Exception.)
Öffentliche Eigenschaft TargetSite (Geerbt von Exception.)

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode GetBaseException (Geerbt von Exception.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetObjectData Sicherheitskritisch (Geerbt von Exception.)
Öffentliche Methode GetType (Geerbt von Exception.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode ToString (Geerbt von Exception.)

Zum Anfang

Ereignisse

  Name Beschreibung
Geschütztes Ereignis SerializeObjectState (Geerbt von Exception.)

Zum Anfang

Hinweise

Depending on the error code, one of the classes that derive from DtsException is created. For example, if the error code returned is 0x8, the DtsScriptingException class is created. This allows you to write code for the different types of exception classes that are returned, instead of coding against the generic DtsException. For a list of the classes that are created, see the link of Derived Classes below.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Dts.Runtime-Namespace

Vererbungshierarchie

System.Object
  System.Exception
    Microsoft.SqlServer.Dts.Runtime.DtsException
      Microsoft.SqlServer.Dts.Runtime.DtsComException
      Microsoft.SqlServer.Dts.Runtime.DtsComponentException
      Microsoft.SqlServer.Dts.Runtime.DtsConnectionException
      Microsoft.SqlServer.Dts.Runtime.DtsCouldNotCreateManagedConnectionException
      Microsoft.SqlServer.Dts.Runtime.DtsCouldNotCreateManagedForEachEnumeratorException
      Microsoft.SqlServer.Dts.Runtime.DtsExponentTooLargeException
      Microsoft.SqlServer.Dts.Runtime.DtsGenericException
      Microsoft.SqlServer.Dts.Runtime.DtsInvalidBreakpointSiteException
      Microsoft.SqlServer.Dts.Runtime.DtsInvalidProjectPasswordOrDataException
      Microsoft.SqlServer.Dts.Runtime.DtsInvalidProjectUserKeyOrDataException
      Microsoft.SqlServer.Dts.Runtime.DtsNoConnectionAssignedException
      Microsoft.SqlServer.Dts.Runtime.DtsNoForEachEnumAssignedException
      Microsoft.SqlServer.Dts.Runtime.DtsNoLogProviderAssignedException
      Microsoft.SqlServer.Dts.Runtime.DtsNoObjectAssignedException
      Microsoft.SqlServer.Dts.Runtime.DtsNotAConnectionException
      Microsoft.SqlServer.Dts.Runtime.DtsNotAForEachEnumException
      Microsoft.SqlServer.Dts.Runtime.DtsNotALogProviderException
      Microsoft.SqlServer.Dts.Runtime.DtsNotAManagedEnumeratorException
      Microsoft.SqlServer.Dts.Runtime.DtsNoTaskAssignedException
      Microsoft.SqlServer.Dts.Runtime.DtsNotATaskException
      Microsoft.SqlServer.Dts.Runtime.DtsPipelineException
      Microsoft.SqlServer.Dts.Runtime.DtsRuntimeException
      Microsoft.SqlServer.Dts.Runtime.DtsScriptingException
      Microsoft.SqlServer.Dts.Runtime.DtsSqlException
      Microsoft.SqlServer.Dts.Runtime.DtsTaskException
      Microsoft.SqlServer.Dts.Runtime.DtsToolsException