JSONException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| JSONException(Throwable) |
Creates a JSON exception with the specified cause. The detail message is the cause's string representation, or |
| JSONException(String) |
Creates a JSON exception with |
| JSONException(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
| JSONException(String, Throwable) |
Creates a JSON exception with the specified detail message and cause. |
JSONException(Throwable)
Creates a JSON exception with the specified cause. The detail message is the cause's string representation, or null if there is no cause.
[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
The exception that caused this exception, or null if the cause is unknown.
- 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)
Creates a JSON exception with s as its detail message.
[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
The detail message for the exception, or null if there is no detail message.
- 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
- 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)
Creates a JSON exception with the specified detail message and cause.
[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
The detail message for the exception, or null if there is no detail message.
- cause
- Throwable
The exception that caused this exception, or null if the cause is unknown.
- 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.