APIdia Launch Partner
Top Description Fields Constructors Methods
java.text

public Class ParseException

extends Exception
Class Inheritance

Signals that an error has been reached unexpectedly while parsing.
Author
Mark Davis
Since
1.1
See Also
java.lang.Exception, java.text.Format, java.text.FieldPosition

Field Summary

Modifier and TypeField and Description
private int
errorOffset

The zero-based character offset into the string being parsed at which the error was found during parsing.

private static final long

Constructor Summary

AccessConstructor and Description
public
ParseException(String
the detail message
s
,
int
the position where the error is found while parsing.
errorOffset
)

Constructs a ParseException with the specified detail message and offset.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the position where the error was found
getErrorOffset
()

Returns the position where the error was found.

Field Detail

errorOffsetback to summary
private int errorOffset

The zero-based character offset into the string being parsed at which the error was found during parsing.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Annotations
@Serial

Constructor Detail

ParseExceptionback to 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.

Parameters
s:String

the detail message

errorOffset:int

the position where the error is found while parsing.

Method Detail

getErrorOffsetback to summary
public int getErrorOffset()

Returns the position where the error was found.

Returns:int

the position where the error was found