語言

JSONException 建構函式

定義

多載

名稱 Description
JSONException(Throwable)
JSONException(String)
JSONException(IntPtr, JniHandleOwnership)

用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。

JSONException(String, Throwable)

JSONException(Throwable)

[Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "", ApiSince=27)]
public JSONException(Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "", ApiSince=27)>]
new Org.Json.JSONException : Java.Lang.Throwable -> Org.Json.JSONException

參數

cause
Throwable
屬性

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

JSONException(String)

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public JSONException(string? s);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Org.Json.JSONException : string -> Org.Json.JSONException

參數

s
String
屬性

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

JSONException(IntPtr, JniHandleOwnership)

用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。

protected JSONException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Org.Json.JSONException : nativeint * Android.Runtime.JniHandleOwnership -> Org.Json.JSONException

參數

javaReference
IntPtr

nativeint

IntPtr,包含 Java Native Interface (JNI) 對象參考。

transfer
JniHandleOwnership

JniHandleOwnership,指出如何處理javaReference

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

JSONException(String, Throwable)

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=27)]
public JSONException(string? message, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=27)>]
new Org.Json.JSONException : string * Java.Lang.Throwable -> Org.Json.JSONException

參數

message
String
cause
Throwable
屬性

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於