java.text
public class: ParseException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.text.ParseException
All Implemented Interfaces:
Serializable
Signals that an error has been reached unexpectedly
while parsing.
Constructor: |
public ParseException(String s,
int errorOffset) {
super(s);
this.errorOffset = errorOffset;
}
Constructs a ParseException 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 from java.lang.Throwable: |
---|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getStackTraceDepth, getStackTraceElement, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from java.text.ParseException Detail: |
public int getErrorOffset() {
return errorOffset;
}
Returns the position where the error was found. |