public class ParseException
extends 异常
| java.lang.Object | |||
| ↳ | java.lang.Throwable | ||
| ↳ | java.lang.Exception | ||
| ↳ | java.text.ParseException | ||
| |
表示解析时出现意外错误。
也可以看看:
Public constructors |
|
|---|---|
ParseException(String s, int errorOffset) 用指定的详细信息和偏移构造一个ParseException。 |
|
Public methods |
|
|---|---|
int |
getErrorOffset() 返回找到错误的位置。 |
Inherited methods |
|
|---|---|
java.lang.Throwable
|
|
java.lang.Object
|
|
ParseException (String s, int errorOffset)
用指定的详细信息和偏移构造一个ParseException。 详细消息是描述此特定异常的字符串。
| Parameters | |
|---|---|
s |
String: the detail message |
errorOffset |
int: the position where the error is found while parsing. |