Boris Kolpackov wrote:
Hi,
Some of the diagnostics messages reported via the ErrorHandler
interface have the prefix in the form "An exception occurred!
Type:RuntimeException, Message:", for example:
"An exception occurred! Type:RuntimeException, Message:The primary
document entity could not be opened. Id=/tmp/test.xml"
I would like to remove this prefix for the following reasons:
1. I get this error or warning via the error handler interface, along with
things like XML well-formedness and XML Schema validation errors. The
fact that this error is internally represented as an exception and its
type don't add any useful information to the message. These are
implementation details of Xerces-C++.
2. It is inconsistent with the way other errors and warning (e.g., XML,
XML Schema, etc.) are formatted.
3. It is ugly. I personally don't like any exclamation marks in the
diagnostics that my applications produce).
Let me know if you have any objections.
This sounds great, but it will affect the expected output of the test
suite, so it may require some significant fixes there as well.
Also, there are cases where XMLExceptions are caught and their text is
reported in the error handling chain, with the text being bundled into a
new RuntimeException or SAXParseException, so you may need to clean up more
than just the message resources.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]