|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.eigenbase.util.EigenbaseException
org.eigenbase.util.EigenbaseContextException
public class EigenbaseContextException
Exception which contains information about the textual context of the causing exception.
| Field Summary | |
|---|---|
private int |
endPosColumn
|
private int |
endPosLine
|
private String |
originalStatement
|
private int |
posColumn
|
private int |
posLine
|
private static long |
serialVersionUID
SerialVersionUID created with JDK 1.5 serialver tool. |
| Constructor Summary | |
|---|---|
EigenbaseContextException(String message,
Throwable cause)
Creates a new EigenbaseContextException object. |
|
EigenbaseContextException(String message,
Throwable cause,
int posLine,
int posColumn,
int endPosLine,
int endPosColumn)
Creates a new EigenbaseContextException object. |
|
EigenbaseContextException(String message,
Throwable cause,
String inputText)
Creates a new EigenbaseContextException object. |
|
| Method Summary | |
|---|---|
int |
getEndPosColumn()
|
int |
getEndPosLine()
|
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. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private int posLine
private int posColumn
private int endPosLine
private int endPosColumn
private String originalStatement
| Constructor Detail |
|---|
public EigenbaseContextException(String message,
Throwable cause)
message - error messagecause - underlying cause, must not be null
public EigenbaseContextException(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 number
public EigenbaseContextException(String message,
Throwable cause,
String inputText)
message - error messagecause - underlying cause, must not be nullinputText - is the orginal SQL statement, may be null| Method Detail |
|---|
public void setPosition(int posLine,
int posColumn)
posLine - 1-based line numberposColumn - 1-based column number
public 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 context
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||