You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by John Kaputin <KA...@uk.ibm.com> on 2005/10/25 23:25:25 UTC

I've made changes to Error reporting

Following on from Lawrence's recent suggestions, I have made some changes
to the error handling and reporting:

Created ErrorLocator to encapsulate line/col numbers and doc URI details
(not sure if the URIs are really needed though). Still need to work out how
to determine the line/col numbers. This object is now used in the
ErrorReporter.reportError method signatures.

Moved ErrorReporter to the API, creating an interface in org.apache.woden
and changing the original class to ErrorReporterImpl.

Remove setErrorHandler and setLocale methods from WSDLReader as these just
delegated to the internal ErrorReporter object. Added a public
getErrorReporter method to WSDLReader instead.

Overloaded the reportError methods to include new methods that take a
message string rather than an array of message arguments. Have retained the
orignal methods as they are used by the Woden implementation. Validators
and extensions may choose to use the new reportError methods.  We should
consider extending the use of Resouce Bundle message files to allow Woden
extensions to specify their own bundles and use them via the ErrorReporter.

Modified the ErrorInfo data object passed to ErrorHandler to include the
new ErrorLocator object, rather than separate URI and line/col fields.
Also, changed its toString() method which is used for default error
reporting to use a more compact string format, similar to Xerces.

Modified the default error message printing in ErrorHandler, per the more
compact format.






---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org