public class

ParseException

extends Exception
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.text.ParseException

Class Overview

Signals that an error has been reached unexpectedly while parsing.

Summary

Public Constructors
ParseException(String s, int errorOffset)
Constructs a ParseException with the specified detail message and offset.
Public Methods
int getErrorOffset()
Returns the position where the error was found.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

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 the detail message
errorOffset the position where the error is found while parsing.

Public Methods

public int getErrorOffset ()

Returns the position where the error was found.