★ wanayoo — archive 1999 http://developer.android.com/reference/java/text/ParseException.htmlNouvelle recherche | Portail wanayoo
public class

ParseException

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

Class Overview

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.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

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.