Class SyntaxError

All Implemented Interfaces:
Serializable

@NonExtendable public class SyntaxError extends RuntimeException
Indicates a parsing error, e.g. for BeanShell scripts or when parsing template code
Since:
5.2.241201
See Also:
  • 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

      public String 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 class Throwable
      Returns:
      The error message.