HttpUnhandledException 构造函数

定义

初始化 HttpUnhandledException 类的新实例。

重载

名称 说明
HttpUnhandledException()

初始化 HttpUnhandledException 类的新实例。

HttpUnhandledException(String)

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

HttpUnhandledException(String, Exception)

使用指定的错误消息和内部异常初始化类的新实例 HttpUnhandledException

HttpUnhandledException()

初始化 HttpUnhandledException 类的新实例。

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

适用于

HttpUnhandledException(String)

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

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

参数

message
String

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

适用于

HttpUnhandledException(String, Exception)

使用指定的错误消息和内部异常初始化类的新实例 HttpUnhandledException

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

参数

message
String

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

innerException
Exception

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

适用于