Build 1.0_r1(from source)

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

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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

getErrorOffset

public int getErrorOffset()
Returns the index at which the parse exception occurred.

Returns:
int The index of the parse exception.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature