URISyntaxException 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
URISyntaxException(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
URISyntaxException(String, String) |
Constructs an instance from the given input string and reason. |
URISyntaxException(String, String, Int32) |
Constructs an instance from the given input string, reason, and error index. |
URISyntaxException(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected URISyntaxException (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Net.URISyntaxException : nativeint * Android.Runtime.JniHandleOwnership -> Java.Net.URISyntaxException
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
URISyntaxException(String, String)
Constructs an instance from the given input string and reason.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public URISyntaxException (string? input, string? reason);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")>]
new Java.Net.URISyntaxException : string * string -> Java.Net.URISyntaxException
Parameters
- input
- String
The input string
- reason
- String
A string explaining why the input could not be parsed
- Attributes
Exceptions
if one of the arguments input
or reason
is
null
.
Remarks
Constructs an instance from the given input string and reason. The resulting object will have an error index of -1
.
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
URISyntaxException(String, String, Int32)
Constructs an instance from the given input string, reason, and error index.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;I)V", "")]
public URISyntaxException (string? input, string? reason, int index);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;I)V", "")>]
new Java.Net.URISyntaxException : string * string * int -> Java.Net.URISyntaxException
Parameters
- input
- String
The input string
- reason
- String
A string explaining why the input could not be parsed
- index
- Int32
The index at which the parse error occurred,
or -1
if the index is not known
- Attributes
Exceptions
if one of the arguments input
or reason
is
null
.
if the value for index
is lesser than -1
.
Remarks
Constructs an instance from the given input string, reason, and error index.
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.