java.text
Class ParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.text.ParseException
All Implemented Interfaces:
Serializable

public class ParseException
extends Exception

This exception is thrown when an unexpected error occurs during parsing.

See Also:
Format, FieldPosition, Serialized Form

Constructor Summary
ParseException(String s, int offset)
          This method initializes a new instance of ParseException with a detailed error message and a error position.
 
Method Summary
 int getErrorOffset()
          This method returns the position where the error occurred.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParseException

public ParseException(String s,
                      int offset)
This method initializes a new instance of ParseException with a detailed error message and a error position.

Parameters:
s - the descriptive message describing the error
offset - the position where the error was encountered
Method Detail

getErrorOffset

public int getErrorOffset()
This method returns the position where the error occurred.

Returns:
the position where the error occurred