|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--notio.OperationException | +--notio.TranslationException | +--notio.ParserException
Exception thrown when some parser's operation gives rise to an error.
Constructor Summary | |
ParserException(java.lang.String message)
Constructs an exception with the specified message. |
|
ParserException(java.lang.String message,
java.lang.String newOffendingToken,
int newBeginLine,
int newEndLine,
int newBeginColumn,
int newEndColumn,
java.lang.String[] newExpectedTokens,
boolean newBeforeFlag,
boolean newAfterFlag)
Constructs an exception with the specified message and details of the token that triggered this exception. |
|
ParserException(java.lang.String message,
java.lang.Throwable newSubThrowable)
Constructs an exception with the specified message and sub-throwable. |
|
ParserException(java.lang.String message,
java.lang.Throwable newSubThrowable,
java.lang.String newOffendingToken,
int newBeginLine,
int newEndLine,
int newBeginColumn,
int newEndColumn,
java.lang.String[] newExpectedTokens,
boolean newBeforeFlag,
boolean newAfterFlag)
Constructs an exception with the specified message, sub-throwable, and details of the token that triggered this exception. |
Method Summary | |
int |
getBeginColumn()
Returns the beginning column of the offending token related to this exception or 0 if none has been specified. |
int |
getBeginLine()
Returns the beginning line of the offending token related to this exception or 0 if none has been specified. |
int |
getEndColumn()
Returns the ending column of the offending token related to this exception or 0 if none has been specified. |
int |
getEndLine()
Returns the ending line of the offending token related to this exception or 0 if none has been specified. |
java.lang.String[] |
getExpectedTokens()
Returns an array containing tokens that would have been accept in place of the offending token related to this exceptionm, or null if none have been specified. |
java.lang.String |
getOccurranceMessage()
Returns a string containing information about the token and/or location involved in this exception, or null if no details are available. |
java.lang.String |
getOffendingToken()
Returns the offending token related to this exception or null if none has been specified. |
Methods inherited from class notio.OperationException |
getSubThrowable,
setSubThrowable |
Methods inherited from class java.lang.Throwable |
fillInStackTrace,
getLocalizedMessage,
getMessage,
printStackTrace,
printStackTrace,
printStackTrace,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public ParserException(java.lang.String message)
message
- The details of the exception.public ParserException(java.lang.String message, java.lang.Throwable newSubThrowable)
message
- the details of the exception.newSubThrowable
- the sub-throwable to be embedded in this exception.public ParserException(java.lang.String message, java.lang.Throwable newSubThrowable, java.lang.String newOffendingToken, int newBeginLine, int newEndLine, int newBeginColumn, int newEndColumn, java.lang.String[] newExpectedTokens, boolean newBeforeFlag, boolean newAfterFlag)
message
- the details of the exception.newSubThrowable
- the sub-throwable to be embedded in this exception.newOffendingToken
- the offending token.newBeginLine
- the line on which the offending token begins.newEndLine
- the line on which the offending token ends.newBeginColumn
- the column at which the offending token begins.newEndColumn
- the column at which the offending token ends.newExpectedTokens
- an array containing tokens that were expected in place of
the offending token.newBeforeFlag
- a flag indicating that the cause of the exception is actually
somewhere before the specified token or location.newAfterFlag
- a flag indicating that the cause of the exception is actually
somewhere after the specified token or location.public ParserException(java.lang.String message, java.lang.String newOffendingToken, int newBeginLine, int newEndLine, int newBeginColumn, int newEndColumn, java.lang.String[] newExpectedTokens, boolean newBeforeFlag, boolean newAfterFlag)
message
- the details of the exception.newOffendingToken
- the offending token.newBeginLine
- the line on which the offending token begins.newEndLine
- the line on which the offending token ends.newBeginColumn
- the column at which the offending token begins.newEndColumn
- the column at which the offending token ends.newExpectedTokens
- an array containing tokens that were expected in place of
the offending token.newBeforeFlag
- a flag indicating that the cause of the exception is actually
somewhere before the specified token or location.newAfterFlag
- a flag indicating that the cause of the exception is actually
somewhere after the specified token or location.Method Detail |
public java.lang.String getOffendingToken()
public int getBeginLine()
public int getEndLine()
public int getBeginColumn()
public int getEndColumn()
public java.lang.String[] getExpectedTokens()
public java.lang.String getOccurranceMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |