Package org.apache.calcite.sql.advise
Class SqlAdvisor.ValidateErrorInfo
java.lang.Object
org.apache.calcite.sql.advise.SqlAdvisor.ValidateErrorInfo
- Enclosing class:
SqlAdvisor
Text and position info of a validator or parser exception.
-
Constructor Summary
ConstructorDescriptionValidateErrorInfo
(int startLineNum, int startColumnNum, int endLineNum, int endColumnNum, @Nullable String errorMsg) Creates a new ValidateErrorInfo with the position coordinates and an error string.Creates a new ValidateErrorInfo with an CalciteContextException.ValidateErrorInfo
(SqlParserPos pos, @Nullable String errorMsg) Creates a new ValidateErrorInfo with a SqlParserPos and an error string. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns 1-based end column number.int
Returns 1-based end line number.@Nullable String
Returns the error message.int
Returns 1-based starting column number.int
Returns 1-based starting line number.
-
Constructor Details
-
ValidateErrorInfo
public ValidateErrorInfo(int startLineNum, int startColumnNum, int endLineNum, int endColumnNum, @Nullable String errorMsg) Creates a new ValidateErrorInfo with the position coordinates and an error string.- Parameters:
startLineNum
- Start line numberstartColumnNum
- Start column numberendLineNum
- End line numberendColumnNum
- End column numbererrorMsg
- Error message
-
ValidateErrorInfo
Creates a new ValidateErrorInfo with an CalciteContextException.- Parameters:
e
- Exception
-
ValidateErrorInfo
Creates a new ValidateErrorInfo with a SqlParserPos and an error string.- Parameters:
pos
- Error positionerrorMsg
- Error message
-
-
Method Details
-
getStartLineNum
public int getStartLineNum()Returns 1-based starting line number. -
getStartColumnNum
public int getStartColumnNum()Returns 1-based starting column number. -
getEndLineNum
public int getEndLineNum()Returns 1-based end line number. -
getEndColumnNum
public int getEndColumnNum()Returns 1-based end column number. -
getMessage
Returns the error message.
-