HttpUnhandledException 建構函式

定義

初始化 HttpUnhandledException 類別的新執行個體。Initializes a new instance of the HttpUnhandledException class.

多載

HttpUnhandledException()

初始化 HttpUnhandledException 類別的新執行個體。Initializes a new instance of the HttpUnhandledException class.

HttpUnhandledException(String)

使用指定的錯誤訊息,初始化 HttpUnhandledException 類別的新執行個體。Initializes a new instance of the HttpUnhandledException class with the specified error messages.

HttpUnhandledException(String, Exception)

使用指定的錯誤訊息和內部例外狀況,初始化 HttpUnhandledException 類別的新執行個體。Initializes a new instance of the HttpUnhandledException class with the specified error message and inner exception.

HttpUnhandledException()

初始化 HttpUnhandledException 類別的新執行個體。Initializes a new instance of the HttpUnhandledException class.

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

適用於

HttpUnhandledException(String)

使用指定的錯誤訊息,初始化 HttpUnhandledException 類別的新執行個體。Initializes a new instance of the HttpUnhandledException class with the specified error messages.

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

擲回例外狀況時,向用戶端顯示的訊息。The message displayed to the client when the exception is thrown.

適用於

HttpUnhandledException(String, Exception)

使用指定的錯誤訊息和內部例外狀況,初始化 HttpUnhandledException 類別的新執行個體。Initializes a new instance of the HttpUnhandledException class with the specified error message and inner exception.

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

擲回例外狀況時,向用戶端顯示的訊息。The message displayed to the client when the exception is thrown.

innerException
Exception

擲回目前例外狀況的 InnerException (如果有的話)。The InnerException, if any, that threw the current exception.

適用於