Class ParseException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.vividsolutions.jump.JUMPException
              extended by
All Implemented Interfaces:

public class ParseException
extends JUMPException

Simple exception class to express problems parsing data.

See Also:
Serialized Form

Field Summary
 int cpos
 java.lang.String fname
 int lineno
Constructor Summary
ParseException(java.lang.String message)
          construct exception with a message
ParseException(java.lang.String message, java.lang.String newFname, int newLineno, int newCpos)
          More explictly construct a parse exception.
Method Summary
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail


public java.lang.String fname


public int lineno


public int cpos
Constructor Detail


public ParseException(java.lang.String message)
construct exception with a message


public ParseException(java.lang.String message,
                      java.lang.String newFname,
                      int newLineno,
                      int newCpos)
More explictly construct a parse exception. Resulting message will be :message + " in file '" + newFname +"', line " + newLineno + ", char " + newCpos

message - information about the type of error
newFname - filename the error occurred in
newLineno - line number the error occurred at
newCPos - character position on the line