HttpUnhandledException 類別

定義

當發生泛型例外時拋出的例外。

public ref class HttpUnhandledException sealed : System::Web::HttpException
public sealed class HttpUnhandledException : System.Web.HttpException
[System.Serializable]
public sealed class HttpUnhandledException : System.Web.HttpException
type HttpUnhandledException = class
    inherit HttpException
[<System.Serializable>]
type HttpUnhandledException = class
    inherit HttpException
Public NotInheritable Class HttpUnhandledException
Inherits HttpException
繼承
屬性

建構函式

名稱 Description
HttpUnhandledException()

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

HttpUnhandledException(String, Exception)

初始化類別的新實例 HttpUnhandledException ,並帶有指定的錯誤訊息與內部例外。

HttpUnhandledException(String)

初始化該類別的新實例 HttpUnhandledException ,並輸入指定的錯誤訊息。

屬性

名稱 Description
Data

取得索引鍵/值組的集合,提供例外狀況的其他使用者定義資訊。

(繼承來源 Exception)
ErrorCode

明白 HRESULT 了錯誤。

(繼承來源 ExternalException)
HelpLink

取得或設定與這個例外狀況相關聯的說明檔連結。

(繼承來源 Exception)
HResult

取得或設定 HRESULT,這是指派給特定例外狀況的編碼數值。

(繼承來源 Exception)
InnerException

會取得 Exception 造成目前例外的實例。

(繼承來源 Exception)
Message

取得描述目前例外狀況的訊息。

(繼承來源 Exception)
Source

取得或設定造成錯誤之應用程式或物件的名稱。

(繼承來源 Exception)
StackTrace

取得呼叫堆疊上即時框架的字串表示。

(繼承來源 Exception)
TargetSite

取得擲回目前例外狀況的方法。

(繼承來源 Exception)
WebEventCode

取得與 HTTP 例外相關的事件碼。

(繼承來源 HttpException)

方法

名稱 Description
Equals(Object)

判斷指定的 物件是否等於目前的物件。

(繼承來源 Object)
GetBaseException()

當在派生類別中被覆寫時,回傳 Exception 是一個或多個後續例外的根因。

(繼承來源 Exception)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetHtmlErrorMessage()

會收到 HTML 錯誤訊息,要回傳給客戶端。

(繼承來源 HttpException)
GetHttpCode()

取得 HTTP 回應狀態碼,回傳給用戶端。

(繼承來源 HttpException)
GetObjectData(SerializationInfo, StreamingContext)

取得例外的資訊並將其加入 SerializationInfo 物件。

(繼承來源 HttpException)
GetType()

取得目前實例的運行時間類型。

(繼承來源 Exception)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

回傳包含錯誤 HRESULT 的字串。

(繼承來源 ExternalException)

事件

名稱 Description
SerializeObjectState

發生於例外狀況串行化以建立例外狀況狀態物件,其中包含例外狀況的串行化數據。

(繼承來源 Exception)

適用於