avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francis Galiegue <fgalie...@gmail.com>
Subject Re: Design decision question about the Avro Java API
Date Wed, 27 Feb 2013 18:42:17 GMT
On Wed, Feb 27, 2013 at 7:34 PM, Tatu Saloranta <tsaloranta@gmail.com> wrote:
[...]
>>
>> Well, to have user code be aware that it can fail, for one ;)
>
> Unchecked exceptions are no uncatchable exceptions, so you can catch
> them as well as checked ones can't you?
>

Sure, but this is not good practice for one, and it can lead to very
nasty surprises when it fails -- in production, otherwise it's not
funny ;)

I catch it right now, but I'd rather my IDE tells me that "hey, it can
fail here, deal with that" -- and I do.

-- 
Francis Galiegue, fgaliegue@gmail.com
JSON Schema in Java: http://json-schema-validator.herokuapp.com

Mime
View raw message