java.text
类 ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.text.ParseException
- 所有已实现的接口:
- Serializable
public class ParseException
- extends Exception
表示解析时出现意外错误。
- 另请参见:
Exception,
Format,
FieldPosition,
序列化表格
| 从类 java.lang.Throwable 继承的方法 |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ParseException
public ParseException(String s,
int errorOffset)
- 构造带指定详细消息和偏移量的 ParseException。详细消息是描述此特定异常的字符串。
- 参数:
s - 详细消息errorOffset - 解析时发现错误的位置。
getErrorOffset
public int getErrorOffset()
- 返回发现错误的位置。