ParseException 构造函数

定义

重载

ParseException(IntPtr, JniHandleOwnership)

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

ParseException(String, Int32)

使用指定的详细信息消息和偏移量构造 ParseException。

ParseException(IntPtr, JniHandleOwnership)

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

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

参数

javaReference
IntPtr

nativeint

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

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

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

适用于

ParseException(String, Int32)

使用指定的详细信息消息和偏移量构造 ParseException。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")]
public ParseException (string? s, int errorOffset);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")>]
new Java.Text.ParseException : string * int -> Java.Text.ParseException

参数

s
String

详细信息消息

errorOffset
Int32

分析时找到错误的位置。

属性

注解

使用指定的详细信息消息和偏移量构造 ParseException。 详细信息消息是描述此特定异常的字符串。

适用于 . 的 java.text.ParseException.ParseException(java.lang.String, int)Java 文档

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

适用于