JSONException Constructors

Definition

Overloads

JSONException(Throwable)
JSONException(String)
JSONException(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

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

Parameters

cause
Throwable
Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

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

Parameters

s
String
Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

JSONException(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

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

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

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

Parameters

message
String
cause
Throwable
Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to