語言

NoSuchElementException 建構函式

定義

多載

名稱 Description
NoSuchElementException()

構造一個 NoSuchElementException ,其 null 錯誤訊息串為其字串。

NoSuchElementException(Throwable)

構造具有指定原因的 a NoSuchElementException 。

NoSuchElementException(String)

構造一個 NoSuchElementException,並儲存錯誤訊息字串 s 的參考,供方法日後檢索 getMessage 。

NoSuchElementException(IntPtr, JniHandleOwnership)

用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。

NoSuchElementException(String, Throwable)

構造出具有指定細節訊息與原因的 a NoSuchElementException 。

NoSuchElementException()

構造一個 NoSuchElementException ,其 null 錯誤訊息串為其字串。

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

備註

構造一個 NoSuchElementException ,其 null 錯誤訊息串為其字串。

的 java.util.NoSuchElementException.NoSuchElementException()Java 檔。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

NoSuchElementException(Throwable)

構造具有指定原因的 a NoSuchElementException 。

[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

參數

cause
Throwable

原因(該方法會保存以供日後檢索 #getCause() )

屬性

備註

構造具有指定原因的 a NoSuchElementException 。 詳細訊息設為 (cause == null ? null : cause.toString()) (通常包含的 cause類別與詳細訊息)。

加了15。

的 java.util.NoSuchElementException.NoSuchElementException(java.lang.Throwable)Java 檔。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

NoSuchElementException(String)

構造一個 NoSuchElementException,並儲存錯誤訊息字串 s 的參考,供方法日後檢索 getMessage 。

[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

參數

s
String

細節訊息。

屬性

備註

構造一個 NoSuchElementException,並儲存錯誤訊息字串 s 的參考,供方法日後檢索 getMessage 。

的 java.util.NoSuchElementException.NoSuchElementException(java.lang.String)Java 檔。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

NoSuchElementException(IntPtr, JniHandleOwnership)

用於建立 JNI 物件受管理表示的建構器;由執行時呼叫。

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

參數

javaReference
IntPtr

nativeint

IntPtr,包含 Java Native Interface (JNI) 對象參考。

transfer
JniHandleOwnership

JniHandleOwnership,指出如何處理javaReference

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

NoSuchElementException(String, Throwable)

構造出具有指定細節訊息與原因的 a NoSuchElementException 。

[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

參數

s
String

詳細訊息,或稱空

cause
Throwable

原因(方法會保存以供日後檢索 #getCause() ),或為空

屬性

備註

構造出具有指定細節訊息與原因的 a NoSuchElementException 。

加了15。

的 java.util.NoSuchElementException.NoSuchElementException(java.lang.String, java.lang.Throwable)Java 檔。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於