ClassNotFoundException 构造函数

定义

重载

名称 说明
ClassNotFoundException()

构造一个 ClassNotFoundException 没有详细信息消息。

ClassNotFoundException(String)

使用指定的详细信息消息构造 a ClassNotFoundException

ClassNotFoundException(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

ClassNotFoundException(String, Throwable)

构造一个 ClassNotFoundException 具有指定的详细信息消息和加载类时引发的可选异常。

ClassNotFoundException()

构造一个 ClassNotFoundException 没有详细信息消息。

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

注解

构造一个 ClassNotFoundException 没有详细信息消息。

适用于 . 的 java.lang.ClassNotFoundException.ClassNotFoundException()Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

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.lang.ClassNotFoundException.ClassNotFoundException(java.lang.String)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

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

IntPtr一个包含Java本机接口 (JNI) 对象引用。

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

ClassNotFoundException(String, Throwable)

构造一个 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

加载类时引发的异常

属性

注解

构造一个 ClassNotFoundException 具有指定的详细信息消息和加载类时引发的可选异常。

已在 1.2 中添加。

适用于 . 的 java.lang.ClassNotFoundException.ClassNotFoundException(java.lang.String, java.lang.Throwable)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于