users@jaxb.java.net

Re: Find out what object is missing

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 20 May 2003 08:35:00 -0700

> How is is possible to get a more specific exception to track find out
> what object exactaly is missing?
>
> Can we enable some internal debugging ?

There's no hidden switch for this.

If you are just debugging the application and would like to know what's
missing, the easiest way is to set a break point at your
ValidationEventHandler. Then look at the call stack.

If you want to use this information programmatically (e.g., present the
error information to users and tell them what to fix), then what
information do you want? The name of the field? Does that really help?

regards,
--
Kohsuke KAWAGUCHI                  408-276-7063 (x17063)
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com