Class SyntaxError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.espirit.firstspirit.access.script.SyntaxError
- All Implemented Interfaces:
Serializable
Indicates a parsing error, e.g. for BeanShell scripts or when parsing template code
- Since:
- 5.2.241201
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the column number of the position where the error occurred.int
Returns the line number of the position where the error occurred.Returns a message containing the String passed to a constructor as well as line and column numbers if any of these are known.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SyntaxError
public SyntaxError()
-
-
Method Details
-
getLineNumber
public int getLineNumber()Returns the line number of the position where the error occurred.- Returns:
- The line number of the syntax error or -1 if unknown.
- Since:
- 5.2.241201
-
getColumnNumber
public int getColumnNumber()Returns the column number of the position where the error occurred.- Returns:
- The column number of the syntax error or -1 if unknown.
- Since:
- 5.2.241201
-
getMessage
Returns a message containing the String passed to a constructor as well as line and column numbers if any of these are known.- Overrides:
getMessage
in classThrowable
- Returns:
- The error message.
-