netty/netty — Issue #125: Wrap an exception raised by a codec by a specific exception
Author: trustin
Created: 2011-12-15 04:25:57+00:00
State: open
Labels: improvement

We currently simply throw the exception raised by codec implementation as-is. However, it makes distinguishing other business logic exceptions from the codec exceptions. For example, `HttpMessageDecoder` raises an `IllegalArgumentException` when decoding fails. We should:

* define `CodecException`, `EncoderException`, `DecoderException`
* make the exception types under the codec packages extend them
* modify all current codec impls to wrap non-`CodecException`s properly