Share via


InvalidPathException Constructors

Definition

Overloads

InvalidPathException(IntPtr, JniHandleOwnership)
InvalidPathException(String, String)

Constructs an instance from the given input string and reason.

InvalidPathException(String, String, Int32)

Constructs an instance from the given input string, reason, and error index.

InvalidPathException(IntPtr, JniHandleOwnership)

protected InvalidPathException (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Nio.FileNio.InvalidPathException : nativeint * Android.Runtime.JniHandleOwnership -> Java.Nio.FileNio.InvalidPathException

Parameters

javaReference
IntPtr

nativeint

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

InvalidPathException(String, String)

Constructs an instance from the given input string and reason.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=26)]
public InvalidPathException (string? input, string? reason);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=26)>]
new Java.Nio.FileNio.InvalidPathException : string * string -> Java.Nio.FileNio.InvalidPathException

Parameters

input
String

the input string

reason
String

a string explaining why the input was rejected

Attributes

Remarks

Constructs an instance from the given input string and reason. The resulting object will have an error index of -1.

Java documentation for java.nio.file.InvalidPathException.InvalidPathException(java.lang.String, java.lang.String).

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

InvalidPathException(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", "", ApiSince=26)]
public InvalidPathException (string? input, string? reason, int index);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;I)V", "", ApiSince=26)>]
new Java.Nio.FileNio.InvalidPathException : string * string * int -> Java.Nio.FileNio.InvalidPathException

Parameters

input
String

the input string

reason
String

a string explaining why the input was rejected

index
Int32

the index at which the error occurred, or -1 if the index is not known

Attributes

Remarks

Constructs an instance from the given input string, reason, and error index.

Java documentation for java.nio.file.InvalidPathException.InvalidPathException(java.lang.String, java.lang.String, int).

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