avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yang <teddyyyy...@gmail.com>
Subject Re: explicit schema verification?
Date Wed, 07 Sep 2011 20:56:45 GMT
thanks guys: https://issues.apache.org/jira/browse/AVRO-885

On Wed, Sep 7, 2011 at 1:48 PM, Doug Cutting <cutting@apache.org> 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
>

Mime
View raw message