avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: explicit schema verification?
Date Wed, 07 Sep 2011 20:48:27 GMT
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