Package org.locationtech.jts.jump.io
Class ParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.locationtech.jts.jump.JUMPException
-
- org.locationtech.jts.jump.io.ParseException
-
- All Implemented Interfaces:
Serializable
public class ParseException extends JUMPException
Simple exception class to express problems parsing data.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParseException(String message)
construct exception with a messageParseException(String message, String newFname, int newLineno, int newCpos)
More explictly construct a parse exception.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
fname
public String fname
-
lineno
public int lineno
-
cpos
public int cpos
-
-
Constructor Detail
-
ParseException
public ParseException(String message)
construct exception with a message
-
ParseException
public ParseException(String message, 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 errornewFname
- filename the error occurred innewLineno
- line number the error occurred atnewCPos
- character position on the line
-
-