다음을 통해 공유


DtsException 클래스

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

상속 계층

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 Gets the error code that creates the appropriate exception class. This field is read-only.
공용 속성 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에서 상속됨)

맨 위로 이동

주의

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.

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

상속 계층

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. . :: . .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