Android
java.text
public class

java.text.ParseException

java.lang.Object
java.lang.Throwable Serializable
java.lang.Exception
java.text.ParseException

A ParseException is thrown when the String being parsed is not in the correct form.

Summary

Public Constructors

            ParseException(String detailMessage, int location)
Constructs a new instance of this class with its walkback, message and the location of the error filled in.

Public Methods

          int  getErrorOffset()
Returns the index at which the parse exception occurred.
Methods inherited from class java.lang.Throwable
Methods inherited from class java.lang.Object

Details

Public Constructors

public ParseException(String detailMessage, int location)

Constructs a new instance of this class with its walkback, message and the location of the error filled in.

Parameters

detailMessage String The detail message for the exception.
location int The index at which the parse exception occurred.

Public Methods

public int getErrorOffset()

Returns the index at which the parse exception occurred.

Returns

  • int The index of the parse exception.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48