Re: Encoder/Decoder exceptions

2013-02-21 Thread Jun Rao
Encoder/Decoder expects non-null return values. So, you should throw exceptions instead. Thanks, Jun On Thu, Feb 21, 2013 at 5:04 PM, Adam Talaat wrote: > Are there any caveats to returning null from an Encoder or Decoder? I'm > planning on doing this if there is a problem de/serializing a mes

Encoder/Decoder exceptions

2013-02-21 Thread Adam Talaat
Are there any caveats to returning null from an Encoder or Decoder? I'm planning on doing this if there is a problem de/serializing a message, rather than throwing an exception.