com.tivoli.zce
Class ParserException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.tivoli.zce.local.LocalizedException
|
+--com.tivoli.zce.CorrelatorException
|
+--com.tivoli.zce.ParserException
- All Implemented Interfaces:
- java.io.Serializable
- public class ParserException
- extends com.tivoli.zce.CorrelatorException
Generic Parser Exception used by rule parsers and predicates parsers
- See Also:
- Serialized Form
Fields inherited from class com.tivoli.zce.local.LocalizedException |
bundle, key, parms |
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, toString |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
startLine
protected int startLine
startColumn
protected int startColumn
endLine
protected int endLine
endColumn
protected int endColumn
ParserException
public ParserException(java.lang.String key)
- Parameters:
key
- the localized Key of the message,
using @see com.tivoli.zce.local.eco_zce_msg_exp
ParserException
public ParserException(java.lang.String key,
java.lang.Exception e)
- Parameters:
key
- the localized Key of the message,
using @see com.tivoli.zce.local.eco_zce_msg_expe
- the inner exception propagated using ParserException
ParserException
public 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
- Parameters:
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 null
ParserException
public 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
- Parameters:
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 null
getStartLine
public 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)
getStartColumn
public 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)
getEndLine
public 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)
getEndColumn
public 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)
add2Location
public 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.
- Parameters:
deltaL
- line offsetdeltaC
- column offset
getMessage
public java.lang.String getMessage()
- add beginning of line/column, ending of line/column for the parsing error,
- Overrides:
getMessage
in class com.tivoli.zce.local.LocalizedException
- See Also:
Throwable.getMessage()