java.text

Class ParseException

public class ParseException extends Exception

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

See Also: Format FieldPosition

UNKNOWN: updated to 1.4

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
intgetErrorOffset()
This method returns the position where the error occurred.

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