It would be nice to keep this exception class around for endpoints to
reject invalid messages.
There was an old ticket about components advertising their supported
payload types. This exception class could belong within that context.
Regards,
Raúl.
On 13 Jan 2013 21:13, "Babak Vahdat" wrote:
>
Hi
I think the idea is to reuse the Exceptions declared by the TypeConverter
API like TypeConversionException, NoTypeConversionAvailableException. And
while reading the InvalidPayloadException JavaDoc itself it's purpose says
exactly what we've got already through the TypeConverter API meaning thi
org.apache.camel.InvalidPayloadException is marked a deprecated with the
java doc comment:
"will be removed in Camel 3.0"
There is no hint what the user should use instead. So I'm asking what is
the right replacement? The more generic parent CamelExchangeException?
Best,
Christian
--