Package org.web3d.vrml.sav
Class VRMLParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.web3d.vrml.lang.VRMLException
org.web3d.vrml.sav.SAVException
org.web3d.vrml.sav.VRMLParseException
- All Implemented Interfaces:
Serializable
An exception that represents a parsing error in a VRML stream.
This is usually due to some form or syntax error. If the parser supports locators then this will also include line and column information. If they are not supported this will have values of -1 for unknown values.
- Version:
- $Revision: 1.4 $
- Author:
- Justin Couch
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVRMLParseException
(int line, int col) Create an exception that says an error occurred on the given line and column numbers.VRMLParseException
(int line, int col, String message) Create an exception that says an error occurred on the given line and column numbers and the given message. -
Method Summary
Modifier and TypeMethodDescriptionint
Get the column number this exception occurred on.int
Get the line number this exception occurred on.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
VRMLParseException
public VRMLParseException(int line, int col) Create an exception that says an error occurred on the given line and column numbers.- Parameters:
line
- The line number the error occurred oncol
- The column number the error occurred on
-
VRMLParseException
Create an exception that says an error occurred on the given line and column numbers and the given message.- Parameters:
line
- The line number the error occurred oncol
- The column number the error occurred onmessage
- Exception description
-
-
Method Details
-
getLineNumber
public int getLineNumber()Get the line number this exception occurred on. If the original parser did not support line numbers this returns -1;- Returns:
- The line number the error was on.
-
getColumnNumber
public int getColumnNumber()Get the column number this exception occurred on. If the original parser did not support column numbers this returns -1;- Returns:
- The column number the error was on.
-