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
-
FormatException(String, int)
- Constructs a FormatException with the specified detail message and
offset.
-
getErrorOffset()
- Returns the position where the error was found.
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.
getErrorOffset
public int getErrorOffset()
- Returns the position where the error was found.
All Packages Class Hierarchy This Package Previous Next Index