Summary: | org.xml.sax.SAXParseException: say which file (incl. path) is concerned | ||
---|---|---|---|
Product: | Xerces-J | Reporter: | Ralf Hauser <hauser> |
Component: | SAX | Assignee: | Xerces-J Developers Mailing List <xerces-j-dev> |
Status: | NEW --- | ||
Severity: | enhancement | CC: | craig.mcclanahan, sraeburn |
Priority: | P3 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | other |
Description
Ralf Hauser
2003-10-29 09:48:55 UTC
I'd say the error message was pretty clear - The content of element type "action-mappings" must match "(action)". Remember these error messages are aimed at developers, not end-users so a certain level of technical understanding is assumed. Any request for enhancement would have to be sent to the Xerces team, not Struts. a path/filename still wouldn't hurt coming from struts-dev@jakarta.apache.org The challenge, of course, is that this particular error message comes from the XML parser, not from Struts -- it is out of our control. At best we could wrap it in some additional message that also includes the filename, but then you risk losing some of the other important details (like what line and column if it's a SAXParseException instead of a SAXException). SAXParseException [1] already contains information about the resource being parsed: its system ID, it public ID, and the position in the document where the parser detected the error. Reading this information is the responsibility of the application. Since this information is already available, there's no need for it to be part of any error messages. [1] http://www.saxproject.org/apidoc/org/xml/sax/SAXParseException.html . |