avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jun Rao <jun...@gmail.com>
Subject exception handling during encode/decode
Date Wed, 04 Feb 2015 17:40:07 GMT
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

Mime
View raw message