com.vividsolutions.jump.io
Class ParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.vividsolutions.jump.JUMPException
              extended by com.vividsolutions.jump.io.ParseException
All Implemented Interfaces:
java.io.Serializable

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

fname

public java.lang.String fname

lineno

public int lineno

cpos

public int cpos
Constructor Detail

ParseException

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


ParseException

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

Parameters:
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