On Mar 22, 2007, at 12:55 PM, Helge Hartmann wrote:
Hello!
When I parse my JessML code and something goes wrong, I would like
to have some informationa about where the error occurs (a line
number).
I get the information: Message: Variable used before definition:
spadeLength.
Is there a way to get the line number?
Call "getCause()" on the JessException, and check if it's a
SAXParseException. If it is, then cast it and call the
SAXParseException.getLineNumber() and getColumnNumber() methods.
--------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://www.jessrules.com
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------