LS2J - Java exception methods

When using LS2J, is there any way to access extra methods that some exception classes have?

Example: I’m creating some XML using the NotesDOM objects, then using LS2J with JAXP 1.3 to validate the XML against a schema. When validation fails, a SAXParseException is raised. That exception has methods getColumnNumber() and getLineNumber(), but the Notes JavaError class does not provide them. The ErrorMsg property specifies the validation error in this case, but the line and column numbers would make it easier to find where the error occurred.

Subject: LS2J - Java exception methods

Hi,

I don’t think that you can access these extra methods out of the box. I would create the necessary exception handlers in your Java code, access the extra methods to collect the information you want, put all the info into a nice message string and rethrow the exception. That way you would have the information you need in the JavaError message string.

Best regards
Mario Varchmin