FileDocCategorySizeDatePackage
ParseException.javaAPI DocAndroid 1.5 API1821Wed May 06 22:41:06 BST 2009java.text

ParseException

public class ParseException extends Exception
Thrown when the string being parsed is not in the correct form.
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
private int
errorOffset
Constructors Summary
public ParseException(String detailMessage, int location)
Constructs a new instance of this class with its stack trace, detail message and the location of the error filled in.

param
detailMessage the detail message for this exception.
param
location the index at which the parse exception occurred.
since
Android 1.0


                                                                          
         
        super(detailMessage);
        errorOffset = location;
    
Methods Summary
public intgetErrorOffset()
Returns the index at which this parse exception occurred.

return
the location of this exception in the parsed string.
since
Android 1.0

        return errorOffset;