Class ExprException

All Implemented Interfaces:
Serializable

public class ExprException extends VarResolverException
Thrown when an SVL #{...} expression cannot be lexed or parsed.

The message reads message at position N:, followed by the source line containing the position and a caret line (tabs copied, other characters as spaces) under the position.

See Also:
  • Constructor Details

    • ExprException

      public ExprException(String message, String source, int pos)
      Constructor.
      Parameters:
      message - The plain (not printf-style) description.
      source - The expression source text.
      pos - The zero-based character offset of the problem.
    • ExprException

      public ExprException(String message, String source, int pos, Throwable cause)
      Constructor.
      Parameters:
      message - The plain (not printf-style) description.
      source - The expression source text.
      pos - The zero-based character offset of the problem.
      cause - The underlying failure. Can be null.
  • Method Details

    • getBaseMessage

      Returns:
      The description without position or source.
    • getSource

      public String getSource()
      Returns:
      The expression source text.
    • getPos

      public int getPos()
      Returns:
      The zero-based character offset of the problem.