Class SqlValidatorException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.calcite.sql.validate.SqlValidatorException
All Implemented Interfaces:
Serializable, CalciteValidatorException

public class SqlValidatorException extends Exception implements CalciteValidatorException
Exception thrown while validating a SQL statement.

Unlike CalciteException, this is a checked exception, which reminds code authors to wrap it in another exception containing the line/column context.

See Also:
  • Constructor Details

    • SqlValidatorException

      public SqlValidatorException(String message, Throwable cause)
      Creates a new SqlValidatorException object.
      Parameters:
      message - error message
      cause - underlying cause