java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.text.ParseException
public class ParseException
表示解析时出现意外错误。
Exception,
Format,
FieldPosition,
序列化表格
| 构造方法摘要 | |
|---|---|
ParseException(String s, int errorOffset) 构造带指定详细消息和偏移量的 ParseException。 |
|
| 方法摘要 | |
|---|---|
int |
getErrorOffset() 返回发现错误的位置。 |
| 从类 java.lang.Throwable 继承的方法 |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public ParseException(String s, int errorOffset)
s - 详细消息
errorOffset - 解析时发现错误的位置。
| 方法详细信息 |
|---|
public int getErrorOffset()