You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Satyam Singh <sa...@ericsson.com> on 2014/07/29 06:03:45 UTC
Why RuntimeCamelException is thrown whenever some IOException occur
for write/read
Hello,
I am using camel HDFS , it is throwing RuntimeCamelException whenever
IOException is thrown by hadoop api in writing/reading.
This causes my application killed. I think this is not preferable practice.
I want to know why this runtime exception is thrown, couldn't we handle
it with printing some logs and cleaning up resources like closing stream ?.
Warm Regards,
Satyam
Re: Why RuntimeCamelException is thrown whenever some IOException
occur for write/read
Posted by Arnaud Deprez <ar...@gmail.com>.
Hi,
Actually, camel will wrap any of your exception or other exception in a
RuntimeCamelException.
You can handle exceptions (including wrapped exception) in many ways in
camel (http://camel.apache.org/error-handling-in-camel.html)
2014-07-29 6:03 GMT+02:00 Satyam Singh <sa...@ericsson.com>:
> Hello,
>
>
> I am using camel HDFS , it is throwing RuntimeCamelException whenever
> IOException is thrown by hadoop api in writing/reading.
>
> This causes my application killed. I think this is not preferable practice.
>
> I want to know why this runtime exception is thrown, couldn't we handle it
> with printing some logs and cleaning up resources like closing stream ?.
>
>
> Warm Regards,
> Satyam
>