|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.tivoli.zce.local.LocalizedException
com.tivoli.zce.CorrelatorException
com.tivoli.zce.ParserException
Generic Parser Exception used by rule parsers and predicates parsers
Field Summary | |
---|---|
protected int |
endColumn
|
protected int |
endLine
|
protected int |
startColumn
|
protected int |
startLine
|
Fields inherited from class com.tivoli.zce.local.LocalizedException |
---|
bundle, key, parms |
Fields inherited from class java.lang.Exception |
---|
|
Constructor Summary | |
---|---|
ParserException(int l1,
int c1,
int l2,
int c2,
java.lang.String key,
java.lang.Exception e)
build a localized parse exception using @see com.tivoli.zce.local.eco_zce_msg_exp |
|
ParserException(int l1,
int c1,
int l2,
int c2,
java.lang.String key,
java.lang.Object[] params,
java.lang.Exception e)
build a localized parse exception |
|
ParserException(java.lang.String key)
|
|
ParserException(java.lang.String key,
java.lang.Exception e)
|
Method Summary | |
---|---|
void |
add2Location(int deltaL,
int deltaC)
Correct the current localization by adding delta line and delta columns this method is mainly called in parsing by another parser, like predicate or action parsers called by the rule parser This mechanism is mainly used to obtain a correct relative coordinate, and in making coordinates absolute to the main document. |
int |
getEndColumn()
return the ending column of the exception, this column could be relative and could be corrected using @see com.tivoli.zce.ParserException#add2Location(int, int) |
int |
getEndLine()
return the ending line of the exception, this line could be relative and could be corrected using @see com.tivoli.zce.ParserException#add2Location(int, int) |
java.lang.String |
getMessage()
add beginning of line/column, ending of line/column for the parsing error, |
int |
getStartColumn()
return the starting column of the exception, this column could be relative and could be corrected using @see com.tivoli.zce.ParserException#add2Location(int, int) |
int |
getStartLine()
return the starting line of the exception, this line could be relative and could be corrected using @see com.tivoli.zce.ParserException#add2Location(int, int) |
Methods inherited from class com.tivoli.zce.local.LocalizedException |
---|
getLocalizedMessage, getLocalizedMessage, getNestedException, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int startLine
protected int startColumn
protected int endLine
protected int endColumn
Constructor Detail |
public ParserException(java.lang.String key)
key
- the localized Key of the message,
using @see com.tivoli.zce.local.eco_zce_msg_exppublic ParserException(java.lang.String key, java.lang.Exception e)
key
- the localized Key of the message,
using @see com.tivoli.zce.local.eco_zce_msg_expe
- the inner exception propagated using ParserException
public ParserException(int l1, int c1, int l2, int c2, java.lang.String key, java.lang.Exception e)
l1
- starting line of the errorc1
- starting column of the errorl2
- ending line of the errorc2
- ending column of the errorkey
- the key of the message in the localized resourcee
- nested exception or nullpublic ParserException(int l1, int c1, int l2, int c2, java.lang.String key, java.lang.Object[] params, java.lang.Exception e)
l1
- starting line of the errorc1
- starting column of the errorl2
- ending line of the errorc2
- ending column of the errorkey
- the key of the message in the localized resourceparams
- object array used to build the final message using
java.text.MessageFormat (@see java.text.MessageFormat)e
- nested exception or nullMethod Detail |
public int getStartLine()
public int getStartColumn()
public int getEndLine()
public int getEndColumn()
public void add2Location(int deltaL, int deltaC)
deltaL
- line offsetdeltaC
- column offsetpublic java.lang.String getMessage()
Throwable.getMessage()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |