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