语言

JavaException 构造函数

定义

重载

名称 说明
JavaException()

构造一个新的可引发值,其详细信息消息为 null。

JavaException(String)

使用指定的详细信息消息构造新的可引发项。

JavaException(JniObjectReference, JniObjectReferenceOptions)
JavaException(String, Exception)
JavaException(JniObjectReference, JniObjectReferenceOptions, JniObjectReference)

JavaException()

构造一个新的可引发值,其详细信息消息为 null。

public JavaException();

注解

构造一个新的可引发值,其详细信息消息为 null。 原因未初始化,随后可以通过调用 initCause(java.lang.Throwable)进行初始化。 调用 fillInStackTrace() 方法以初始化新创建的可引发的堆栈跟踪数据。

Java参考java.lang.Throwable.Throwable。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

JavaException(String)

使用指定的详细信息消息构造新的可引发项。

public JavaException(string message);
new Java.Interop.JavaException : string -> Java.Interop.JavaException

参数

message
String

详细信息消息。 通过 getMessage() 方法保存详细信息消息以供以后检索。

注解

使用指定的详细信息消息构造新的可引发项。 原因未初始化,随后可以通过调用 initCause(java.lang.Throwable)进行初始化。 调用 fillInStackTrace() 方法以初始化新创建的可引发的堆栈跟踪数据。

Java参考java.lang.Throwable.Throwable。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

JavaException(JniObjectReference, JniObjectReferenceOptions)

public JavaException(ref Java.Interop.JniObjectReference reference, Java.Interop.JniObjectReferenceOptions transfer);
new Java.Interop.JavaException : JniObjectReference * Java.Interop.JniObjectReferenceOptions -> Java.Interop.JavaException

参数

reference
JniObjectReference

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

JavaException(String, Exception)

public JavaException(string message, Exception innerException);
new Java.Interop.JavaException : string * Exception -> Java.Interop.JavaException

参数

message
String
innerException
Exception

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

JavaException(JniObjectReference, JniObjectReferenceOptions, JniObjectReference)

protected JavaException(ref Java.Interop.JniObjectReference reference, Java.Interop.JniObjectReferenceOptions transfer, Java.Interop.JniObjectReference throwableOverride);
new Java.Interop.JavaException : JniObjectReference * Java.Interop.JniObjectReferenceOptions * Java.Interop.JniObjectReference -> Java.Interop.JavaException

参数

reference
JniObjectReference
throwableOverride
JniObjectReference

适用于