java.text
Class ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.text.ParseException
- All Implemented Interfaces:
- Serializable
public class ParseException
- extends Exception
A ParseException is thrown when the String being parsed is not in the correct
form.
- See Also:
- Serialized Form
|
Constructor Summary |
ParseException(String detailMessage,
int location)
Constructs a new instance of this class with its walkback, message and
the location of the error filled in. |
|
Method Summary |
int |
getErrorOffset()
Returns the index at which the parse exception occurred. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ParseException
public ParseException(String detailMessage,
int location)
- Constructs a new instance of this class with its walkback, message and
the location of the error filled in.
- Parameters:
detailMessage - String The detail message for the exception.location - int The index at which the parse exception occurred.
getErrorOffset
public int getErrorOffset()
- Returns the index at which the parse exception occurred.
- Returns:
- int The index of the parse exception.
Please submit a feedback, bug or feature