|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.hackystat.telemetry.analyzer.language.TelemetryLanguageException
org.hackystat.telemetry.analyzer.language.parser.ParsingException
public class ParsingException
Exception for telemetry query parsing related problems.
Constructor Summary | |
---|---|
ParsingException(java.lang.String message)
Constructs this parsing exception. |
|
ParsingException(java.lang.String message,
int errorLineNumber,
int errorColumnNumber)
Constructs this parsing exception. |
|
ParsingException(java.lang.Throwable exception)
Constructs this parsing exception. |
Method Summary | |
---|---|
int |
getErrorColumnNumber()
Gets the column number (1-indexed) where the parser encounters the error. |
int |
getErrorLineNumber()
Gets the line number (1-indexed) where the parser encounters the error. |
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 |
Constructor Detail |
---|
public ParsingException(java.lang.String message)
message
- The error message.public ParsingException(java.lang.String message, int errorLineNumber, int errorColumnNumber)
message
- The error message.errorLineNumber
- The line (1-indexed) where the parser encounters the error.errorColumnNumber
- The column (1-indexed) where the parser encounters the error.public ParsingException(java.lang.Throwable exception)
ParseException
, then there is special
logic to extract error line number and column number. This works with the
ParseException code generated with JavaCC 3.1. I am not sure whether it
will work correctly with other versions of JavaCC, since it uses some
internal knowledge of the parser to get the line number and column number
where the parse error occurs.
exception
- The exception to be wrapped.Method Detail |
---|
public int getErrorLineNumber()
public int getErrorColumnNumber()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |