ServicedComponentException 构造函数

定义

初始化 ServicedComponentException 类的新实例。

重载

名称 说明
ServicedComponentException()

初始化 ServicedComponentException 类的新实例。

ServicedComponentException(String)

使用指定的错误消息初始化类的新实例 ServicedComponentException

ServicedComponentException(String, Exception)

初始化 ServicedComponentException 类的新实例。

ServicedComponentException()

初始化 ServicedComponentException 类的新实例。

public:
 ServicedComponentException();
public ServicedComponentException();
Public Sub New ()

适用于

ServicedComponentException(String)

使用指定的错误消息初始化类的新实例 ServicedComponentException

public:
 ServicedComponentException(System::String ^ message);
public ServicedComponentException(string message);
new System.EnterpriseServices.ServicedComponentException : string -> System.EnterpriseServices.ServicedComponentException
Public Sub New (message As String)

参数

message
String

引发异常时向客户端显示的消息。

适用于

ServicedComponentException(String, Exception)

初始化 ServicedComponentException 类的新实例。

public:
 ServicedComponentException(System::String ^ message, Exception ^ innerException);
public ServicedComponentException(string message, Exception innerException);
new System.EnterpriseServices.ServicedComponentException : string * Exception -> System.EnterpriseServices.ServicedComponentException
Public Sub New (message As String, innerException As Exception)

参数

message
String

引发异常时向客户端显示的消息。

innerException
Exception

如果 InnerException存在,则引发当前异常。

适用于