All Packages Class Hierarchy This Package Previous Next Index
Class java.text.FormatException
java.lang.Object
|
+----java.lang.Throwable
|
+----java.lang.Exception
|
+----java.text.FormatException
- public class FormatException
- extends Exception
Signals that an error has been has been reached unexpectedly
while parsing or formatting.
- See Also:
- Exception, Format, FormatStatus
-
FormatException()
- Constructs a FormatException with the default detail message and offset.
-
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.
FormatException
public FormatException()
- Constructs a FormatException with the default detail message and offset.
getErrorOffset
public int getErrorOffset()
- Returns the position where the error was found.
All Packages Class Hierarchy This Package Previous Next Index