All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.text.FormatException

java.lang.Object
   |
   +----java.lang.Throwable
           |
           +----java.lang.Exception
                   |
                   +----java.lang.RuntimeException
                           |
                           +----java.lang.IllegalArgumentException
                                   |
                                   +----java.text.FormatException

public class FormatException
extends IllegalArgumentException
Signals that an error has been has been reached unexpectedly while formatting.

See Also:
Exception, Format, FieldPosition

Constructor Index

 o FormatException(String, int)
Constructs a FormatException with the specified detail message and offset.

Method Index

 o getErrorOffset()
Returns the position where the error was found.

Constructors

 o FormatException
  public FormatException(String s,
                         int errorOffset)
Constructs a FormatException 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.

Methods

 o getErrorOffset
  public int getErrorOffset()
Returns the position where the error was found.


All Packages  Class Hierarchy  This Package  Previous  Next  Index