Re: [castor-dev] Can marshalling error messages be more specific?
James, Keith, can you please move any further messages to dev@castor.codehaus.org (which I've added to CC already). Thanks Werner On Sun, 10 Apr 2005 21:37:44 -0500, Keith Visco wrote: > >Jim, > >Does it not provide an xpath location as part of the exception, such as: >/a/b/c ? It's supposed to do that. > >If not, please file a bug report with a sample test case and we'll try >to make the validation message more meaningful. Or, if you have the time >and want to update the error messages and contribute them back to the >project, that would be great too. > >Thanks, > >--Keith > >James Carter wrote: >> >> Hi all, >> >> When encountering marshalling validation errors, the resulting Exception >> text doesn't seem to be very specific, that is, if the schema contains >> multiple nested elements (say Element A contains Element B which >> contains Element C, etc), and the validation is failing for a low-level >> element (say, C), the error message says something like: >> >> The following exception occurred while validating field: /Afield >> / of class: /Aclass/ >> >> Is it possible to get more specifics on where the actual validation >> error is occurring (in this case, class C)? Is there already some >> facility in Castor to get this info that I'm just missing? >> >> Thanks, >> Jim Carter >> >> >> >> >> --- >> If you wish to unsubscribe from this mailing, send mail to >> [EMAIL PROTECTED] with a subject of: >> unsubscribe castor-dev > > > >--- >If you wish to unsubscribe from this mailing, send mail to >[EMAIL PROTECTED] with a subject of: >unsubscribe castor-dev > --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
Re: [castor-dev] Can marshalling error messages be more specific?
Jim, Does it not provide an xpath location as part of the exception, such as: /a/b/c ? It's supposed to do that. If not, please file a bug report with a sample test case and we'll try to make the validation message more meaningful. Or, if you have the time and want to update the error messages and contribute them back to the project, that would be great too. Thanks, --Keith James Carter wrote: Hi all, When encountering marshalling validation errors, the resulting Exception text doesn't seem to be very specific, that is, if the schema contains multiple nested elements (say Element A contains Element B which contains Element C, etc), and the validation is failing for a low-level element (say, C), the error message says something like: The following exception occurred while validating field: /Afield / of class: /Aclass/ Is it possible to get more specifics on where the actual validation error is occurring (in this case, class C)? Is there already some facility in Castor to get this info that I'm just missing? Thanks, Jim Carter --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
[castor-dev] Can marshalling error messages be more specific?
Hi all, When encountering marshalling validation errors, the resulting Exception text doesn't seem to be very specific, that is, if the schema contains multiple nested elements (say Element A contains Element B which contains Element C, etc), and the validation is failing for a low-level element (say, C), the error message says something like: The following exception occurred while validating field: Afield of class: Aclass Is it possible to get more specifics on where the actual validation error is occurring (in this case, class C)? Is there already some facility in Castor to get this info that I'm just missing? Thanks, Jim Carter --- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev