public class CalciteContextException extends CalciteException
| Constructor and Description |
|---|
CalciteContextException(String message,
Throwable cause)
Creates a new CalciteContextException object.
|
CalciteContextException(String message,
Throwable cause,
int posLine,
int posColumn,
int endPosLine,
int endPosColumn)
Creates a new CalciteContextException object.
|
CalciteContextException(String message,
Throwable cause,
String inputText)
Creates a new CalciteContextException object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEndPosColumn() |
int |
getEndPosLine() |
String |
getMessage() |
String |
getOriginalStatement() |
int |
getPosColumn() |
int |
getPosLine() |
void |
setOriginalStatement(String originalStatement) |
void |
setPosition(int posLine,
int posColumn)
Sets a textual position at which this exception was detected.
|
void |
setPosition(int posLine,
int posColumn,
int endPosLine,
int endPosColumn)
Sets a textual range at which this exception was detected.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CalciteContextException(String message, Throwable cause)
message - error messagecause - underlying cause, must not be nullpublic CalciteContextException(String message, Throwable cause, int posLine, int posColumn, int endPosLine, int endPosColumn)
message - error messagecause - underlying cause, must not be nullposLine - 1-based start line numberposColumn - 1-based start column numberendPosLine - 1-based end line numberendPosColumn - 1-based end column numberpublic CalciteContextException(String message, Throwable cause, String inputText)
message - error messagecause - underlying cause, must not be nullinputText - is the orginal SQL statement, may be nullpublic void setPosition(int posLine,
int posColumn)
posLine - 1-based line numberposColumn - 1-based column numberpublic void setPosition(int posLine,
int posColumn,
int endPosLine,
int endPosColumn)
posLine - 1-based start line numberposColumn - 1-based start column numberendPosLine - 1-based end line numberendPosColumn - 1-based end column numberpublic int getPosLine()
public int getPosColumn()
public int getEndPosLine()
public int getEndPosColumn()
public String getOriginalStatement()
public void setOriginalStatement(String originalStatement)
originalStatement - - String to associate with the current contextpublic String getMessage()
getMessage in class ThrowableCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.