thanks guys: https://issues.apache.org/jira/browse/AVRO-885

On Wed, Sep 7, 2011 at 1:48 PM, Doug Cutting <[email protected]> wrote:

> On 09/07/2011 01:17 PM, Yang wrote:
> > but instead of NPE, could we make Avro throw a more explicit exception,
> > so it's more descriptive?
>
> This is possible.  It could be done back-compatibly by throwing a
> subclass of NullPointerException, e.g., AvroNullValueException.  The
> logic in question is in GenericDatumWriter, where Avro builds an error
> message indicating the path to the null in the data.
>
> Please file an issue in Jira for this.
>
> Doug
>

Reply via email to