You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@avro.apache.org by Jun Rao <ju...@gmail.com> on 2015/02/04 18:40:07 UTC

exception handling during encode/decode

Hi,

What kind of exceptions can be thrown when encode and decode Avro data? I
have seen exceptions like AvroRuntimeException, NullPointerException,
and ClassCastException. What's the best way to handle all those exception?
Should the caller just catch all RuntimeException?

Thanks,

Jun