public class ParseException extends 异常
异常
, Format
, FieldPosition
, Serialized Form
Constructor and Description |
---|
ParseException(String s, int errorOffset)
构造具有指定的详细消息和偏移量的ParseException。
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorOffset()
返回发现错误的位置。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ParseException(String s, int errorOffset)
s
- 详细信息
errorOffset
- 解析时发现错误的位置。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.