org.eigenbase.sql.advise
Class SqlAdvisor.ValidateErrorInfo
java.lang.Object
org.eigenbase.sql.advise.SqlAdvisor.ValidateErrorInfo
- Enclosing class:
- SqlAdvisor
public class SqlAdvisor.ValidateErrorInfo
- extends Object
An inner class that represents error message text and position info of a
validator or parser exception
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
startLineNum
private int startLineNum
startColumnNum
private int startColumnNum
endLineNum
private int endLineNum
endColumnNum
private int endColumnNum
errorMsg
private String errorMsg
SqlAdvisor.ValidateErrorInfo
public SqlAdvisor.ValidateErrorInfo(int startLineNum,
int startColumnNum,
int endLineNum,
int endColumnNum,
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
SqlAdvisor.ValidateErrorInfo
public SqlAdvisor.ValidateErrorInfo(EigenbaseContextException e)
- Creates a new ValidateErrorInfo with an EigenbaseContextException.
- Parameters:
e
- Exception
SqlAdvisor.ValidateErrorInfo
public SqlAdvisor.ValidateErrorInfo(SqlParserPos pos,
String errorMsg)
- Creates a new ValidateErrorInfo with a SqlParserPos and an error
string.
- Parameters:
pos
- Error positionerrorMsg
- Error message
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
public String getMessage()
- Returns:
- error message