Hi,
right now, there's no such feature. As much as we'd like it, we don't
have all the time to think about this right now. Having said that, if
you had a look at the sources and came up with some ideas/an initial
patch, I am sure it will be looked at, assessed and integrated.
Or let me try to put the same idea into another context: thsi is an open
source project, afaik. As such, we depend on our user community, their
thoughts *and* contributions.
Regards
Werner Guttmann
Aparajitha wrote:
Hi,
I have been using castor in our project from past 4 months.
How do I present to the end user a common format error message for
the following error messages.
/ValidationException: The field '_conceptCode' (whose xml name is
'ConceptCode') is a required field of class
'com.wsgc.services.inventory.schema.wrapper.findinventory.FindItemAvailability;/
/ - location of error: XPATH: /FindItemAvailability/
/ at
org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:209)/
/ at
org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDescriptorImpl.java:1048)/
/ at
org.exolab.castor.xml.Validator.validate(Validator.java:127)/
/ at
org.exolab.castor.xml.FieldValidator.validateInstance(FieldValidator.java:325)/
/ at
org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:270)/
/ /
I'd prefer something like:
"Error due to empty concept tag, attribute is missing".
I have to perform similar xsd validations,where castor is throwing
unmarshalling exceptions if the elements are not present.
I want a common message format how to extract the required details
from the entire exception message
Thanks in advance,
aparvatala
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email