Most visited

Recently visited

Added in API level 1

ParseException

public class ParseException
extends 异常

java.lang.Object
    java.lang.Throwable
      java.lang.Exception
        java.text.ParseException
Known Direct Subclasses


表示解析时出现意外错误。

也可以看看:

摘要(Summary)

Public constructors

ParseException(String s, int errorOffset)

用指定的详细信息和偏移构造一个ParseException。

公共方法(Public methods)

int getErrorOffset()

返回找到错误的位置。

继承方法(Inherited methods)

From class java.lang.Throwable
From class java.lang.Object

Public constructors

ParseException

Added in API level 1
ParseException (String s, 
                int errorOffset)

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

参数(Parameters)
s String: the detail message
errorOffset int: the position where the error is found while parsing.

公共方法(Public methods)

getErrorOffset

Added in API level 1
int getErrorOffset ()

返回找到错误的位置。

返回(Returns)
int

Hooray!