次の方法で共有


DtsException クラス

返されたエラー コードに応じて、発生した例外の種類固有のクラスを作成する汎用例外クラスを定義します。

継承階層

System.Object
  System.Exception
    Microsoft.SqlServer.Dts.Runtime.DtsException
      詳細情報...

名前空間:  Microsoft.SqlServer.Dts.Runtime
アセンブリ:  Microsoft.SqlServer.ManagedDTS (Microsoft.SqlServer.ManagedDTS.dll)

構文

'宣言
<SerializableAttribute> _
Public Class DtsException _
    Inherits Exception
'使用
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

DtsException 型は、以下のメンバーを公開しています。

プロパティ

  名前 説明
パブリック プロパティ Data (Exception から継承されています。)
パブリック プロパティ ErrorCode 適切な例外クラスを作成するエラー コードを取得します。このフィールドは読み取り専用です。
パブリック プロパティ HelpLink (Exception から継承されています。)
パブリック プロパティ HResult (Exception から継承されています。)
パブリック プロパティ InnerException (Exception から継承されています。)
パブリック プロパティ Message (Exception から継承されています。)
パブリック プロパティ Source (Exception から継承されています。)
パブリック プロパティ StackTrace (Exception から継承されています。)
パブリック プロパティ TargetSite (Exception から継承されています。)

先頭に戻る

メソッド

  名前 説明
パブリック メソッド Equals (Object から継承されています。)
プロテクト メソッド Finalize (Object から継承されています。)
パブリック メソッド GetBaseException (Exception から継承されています。)
パブリック メソッド GetHashCode (Object から継承されています。)
パブリック メソッド GetObjectData セキュリティ クリティカル。 (Exception から継承されています。)
パブリック メソッド GetType (Exception から継承されています。)
プロテクト メソッド MemberwiseClone (Object から継承されています。)
パブリック メソッド ToString (Exception から継承されています。)

先頭に戻る

イベント

  名前 説明
プロテクト イベント SerializeObjectState (Exception から継承されています。)

先頭に戻る

説明

エラー コードに応じて、DtsException から派生するクラスの 1 つが作成されます。 たとえば、エラー コード 0x8 が返された場合、DtsScriptingException クラスが作成されます。 これにより、汎用 DtsException に対してコードを記述する代わりに、返されたさまざまな種類の例外クラスに対応するコードを記述できます。 作成されるクラスの一覧については、下記の「派生クラス」のリンクを参照してください。

スレッド セーフ

この型の public static (Visual Basic では Shared) のメンバーはすべて、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。

関連項目

参照

Microsoft.SqlServer.Dts.Runtime 名前空間

継承階層

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