java.text
public class ParseException extends Exception
Format
,
FieldPosition
,
Serialized FormConstructor and Description |
---|
ParseException(String s,
int offset)
This method initializes a new instance of
ParseException
with a detailed error message and a error position. |
Modifier and Type | Method and Description |
---|---|
int |
getErrorOffset()
This method returns the position where the error occurred.
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ParseException(String s, int offset)
ParseException
with a detailed error message and a error position.s
- the descriptive message describing the erroroffset
- the position where the error was encounteredpublic int getErrorOffset()