HttpUnhandledException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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存在,则引发当前异常。