HttpUnhandledException 建構函式

定義

初始化 HttpUnhandledException 類別的新執行個體。

多載

名稱 Description
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如果有的話,那就是目前的例外。

適用於