| Summary: | XSD: Improve Cryptic error message | ||
|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | S Kalia <kalia> |
| Component: | XSD | Assignee: | Ed Merks <Ed.Merks> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
S Kalia
I really don't see that the suggestion is any less cryptic. It doesn't seem worth the effort to change it. (In reply to comment #1) > I really don't see that the suggestion is any less cryptic. It doesn't seem > worth the effort to change it. Based on feedback from users not intimately familiar with XML schema, they find it very hard to understand the current message. If you do not want to change the message, then please provide an enhancement to associate error message ID with the message, then using products can use the error id and issue an error message tailored for their audience. XSDDiagnostic.getKey already supports what you suggest,i.e., a key you can use to create your own detailed specialized messages, or just to add the key itself to the message string. What you show here is kind of a corner case where there are two anonymous types with really no way of distinguishing the two types based on their names. Your suggestion also seems to deal only with this one corner case. |