語言

ClassNotFoundException 建構函式

定義

多載

名稱 Description
ClassNotFoundException()

構建一個 ClassNotFoundException 沒有細節訊息的訊息。

ClassNotFoundException(String)

構造包含指定細節訊息的 a ClassNotFoundException 。

ClassNotFoundException(IntPtr, JniHandleOwnership)

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

ClassNotFoundException(String, Throwable)

構造 a ClassNotFoundException 並附上指定的詳細訊息及載入類別時提出的可選例外。

ClassNotFoundException()

構建一個 ClassNotFoundException 沒有細節訊息的訊息。

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

備註

構建一個 ClassNotFoundException 沒有細節訊息的訊息。

Java 文件 java.lang.ClassNotFoundException.ClassNotFoundException()。

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

適用於

ClassNotFoundException(String)

構造包含指定細節訊息的 a ClassNotFoundException 。

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

參數

s
String

細節訊息。

屬性

備註

構造包含指定細節訊息的 a ClassNotFoundException 。

Java 文件 java.lang.ClassNotFoundException.ClassNotFoundException(java.lang.String)。

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

適用於

ClassNotFoundException(IntPtr, JniHandleOwnership)

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

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

參數

javaReference
IntPtr

nativeint

IntPtrA 包含一個 Java 原生介面(JNI)物件參考。

transfer
JniHandleOwnership

JniHandleOwnershipA 指示如何處理javaReference

備註

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

適用於

ClassNotFoundException(String, Throwable)

構造 a ClassNotFoundException 並附上指定的詳細訊息及載入類別時提出的可選例外。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")]
public ClassNotFoundException(string? s, Java.Lang.Throwable? ex);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")>]
new Java.Lang.ClassNotFoundException : string * Java.Lang.Throwable -> Java.Lang.ClassNotFoundException

參數

s
String

細節訊息

ex
Throwable

載入類別時提出的例外

屬性

備註

構造 a ClassNotFoundException 並附上指定的詳細訊息及載入類別時提出的可選例外。

在 1.2 版本中加入。

Java 文件 java.lang.ClassNotFoundException.ClassNotFoundException(java.lang.String, java.lang.Throwable)。

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

適用於