HttpException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| HttpException(IntPtr, JniHandleOwnership) | |
| HttpException(String, Throwable) |
構造一個由 引起的 |
HttpException(IntPtr, JniHandleOwnership)
protected HttpException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Net.Http.HttpException : nativeint * Android.Runtime.JniHandleOwnership -> Android.Net.Http.HttpException
參數
- javaReference
-
IntPtr
nativeint
- transfer
- JniHandleOwnership
適用於
HttpException(String, Throwable)
構造一個由 引起的 cause例外。
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=34)]
public HttpException(string? message, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=34)>]
new Android.Net.Http.HttpException : string * Java.Lang.Throwable -> Android.Net.Http.HttpException
參數
- message
- String
失效解釋。
- cause
- Throwable
原因(該方法會保存以供日後檢索 java.io.IOException#getCause getCause() )。 允許使用空值,表示原因不存在或未知。
- 屬性
備註
構造一個由 引起的 cause例外。
Java 文件 android.net.http.HttpException.HttpException(java.lang.String, java.lang.Throwable)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。