|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.text.ParseException
net.sf.japaki.text.ParsingException
public class ParsingException
An exception that stores the path to the field where the parsing exception occurred.
ParseReader.checkForException(java.lang.String),
Serialized Form| Constructor Summary | |
|---|---|
ParsingException(String s,
int errorOffset,
int errorLine,
String source,
Collection<Parser> path)
Constructs a parsing exception with the specified details. |
|
| Method Summary | |
|---|---|
int |
compareTo(ParsingException other)
Compares the error position of this exception with the position of the specified exception. |
int |
getErrorLine()
Returns the number of the line where the error was found. |
Collection<Parser> |
getPath()
Returns the path to the field where the parsing exception occurred. |
String |
getSource()
Returns the line where the error was found. |
void |
printDetails()
Performs the default way to display a parsing exception. |
void |
printDetails(PrintStream stream)
Performs the default way to display a parsing exception. |
| Methods inherited from class java.text.ParseException |
|---|
getErrorOffset |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ParsingException(String s,
int errorOffset,
int errorLine,
String source,
Collection<Parser> path)
s - the detail messageerrorOffset - the position where the error is found while parsingerrorLine - the line where the exception is foundpath - path to the field where the exception is found| Method Detail |
|---|
public int getErrorLine()
public String getSource()
public Collection<Parser> getPath()
public void printDetails(PrintStream stream)
stream - PrintStream to use for outputpublic void printDetails()
System.err.
public int compareTo(ParsingException other)
compareTo in interface Comparable<ParsingException>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||