Compartir a través de


NoSuchElementException Constructors

Definition

Overloads

NoSuchElementException()

Constructs a NoSuchElementException with null as its error message string.

NoSuchElementException(Throwable)

Constructs a NoSuchElementException with the specified cause.

NoSuchElementException(String)

Constructs a NoSuchElementException, saving a reference to the error message string s for later retrieval by the getMessage method.

NoSuchElementException(IntPtr, JniHandleOwnership)

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

NoSuchElementException(String, Throwable)

Constructs a NoSuchElementException with the specified detail message and cause.

NoSuchElementException()

Constructs a NoSuchElementException with null as its error message string.

[Android.Runtime.Register(".ctor", "()V", "")]
public NoSuchElementException ();
Attributes

Remarks

Constructs a NoSuchElementException with null as its error message string.

Java documentation for java.util.NoSuchElementException.NoSuchElementException().

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

NoSuchElementException(Throwable)

Constructs a NoSuchElementException with the specified cause.

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

Parameters

cause
Throwable

the cause (which is saved for later retrieval by the #getCause() method)

Attributes

Remarks

Constructs a NoSuchElementException with the specified cause. The detail message is set to (cause == null ? null : cause.toString()) (which typically contains the class and detail message of cause).

Added in 15.

Java documentation for java.util.NoSuchElementException.NoSuchElementException(java.lang.Throwable).

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

NoSuchElementException(String)

Constructs a NoSuchElementException, saving a reference to the error message string s for later retrieval by the getMessage method.

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

Parameters

s
String

the detail message.

Attributes

Remarks

Constructs a NoSuchElementException, saving a reference to the error message string s for later retrieval by the getMessage method.

Java documentation for java.util.NoSuchElementException.NoSuchElementException(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

NoSuchElementException(IntPtr, JniHandleOwnership)

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

protected NoSuchElementException (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.NoSuchElementException : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.NoSuchElementException

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

NoSuchElementException(String, Throwable)

Constructs a NoSuchElementException with the specified detail message and cause.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=34)]
public NoSuchElementException (string? s, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=34)>]
new Java.Util.NoSuchElementException : string * Java.Lang.Throwable -> Java.Util.NoSuchElementException

Parameters

s
String

the detail message, or null

cause
Throwable

the cause (which is saved for later retrieval by the #getCause() method), or null

Attributes

Remarks

Constructs a NoSuchElementException with the specified detail message and cause.

Added in 15.

Java documentation for java.util.NoSuchElementException.NoSuchElementException(java.lang.String, java.lang.Throwable).

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