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()
Returns the 1-based ending column number, or 0 for missing position
information.
|
int |
getEndPosLine()
Returns the 1-based ending line number, or 0 for missing position
information.
|
@Nullable String |
getMessage() |
@Nullable String |
getOriginalStatement()
Returns the input string that is associated with the context.
|
int |
getPosColumn()
Returns the 1-based column number, or 0 for missing position information.
|
int |
getPosLine()
Returns the 1-based line number, or 0 for missing position information.
|
void |
setOriginalStatement(@Nullable String originalStatement)
Sets the input string to associate with the current context.
|
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(@UnknownInitialization CalciteContextException this,
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 @Nullable String getOriginalStatement()
public void setOriginalStatement(@Nullable String originalStatement)
public @Nullable String getMessage()
getMessage in class ThrowableCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.