FileDocCategorySizeDatePackage
ParseException.javaAPI DocJava SE 5 API1826Fri Aug 26 14:57:20 BST 2005java.text

ParseException

public class ParseException extends Exception
Signals that an error has been reached unexpectedly while parsing.
see
java.lang.Exception
see
java.text.Format
see
java.text.FieldPosition
version
1.16, 12/19/03
author
Mark Davis

Fields Summary
private int
errorOffset
The zero-based character offset into the string being parsed at which the error was found during parsing.
Constructors Summary
public ParseException(String s, int errorOffset)
Constructs a ParseException with the specified detail message and offset. A detail message is a String that describes this particular exception.

param
s the detail message
param
errorOffset the position where the error is found while parsing.

        super(s);
        this.errorOffset = errorOffset;
    
Methods Summary
public intgetErrorOffset()
Returns the position where the error was found.

        return errorOffset;