camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gert Vanthienen <gert.vanthie...@skynet.be>
Subject Re: BeanProcessor - wrapping throwable why?
Date Mon, 13 Oct 2008 08:24:36 GMT
Claus,

I don't see any reason to catch/wrap/rethrow a plain Exception/Throwable 
at that point either.
+1 on removing the catch clauses for Exception & Throwable

Gert

Claus Ibsen wrote:
> Hi
>
> The process() method in BeanProcessor has try .. catch that catches Throwable and rethrows
it as Exception.
>
> This is wrong as java.lang.Error shouldn't really be caught / hidden.
>
> I do think the catches should be removed and just let the original exception being thrown.
>
> Any thoughts?
>
>
> Med venlig hilsen
>
> Claus Ibsen
> ......................................
> Silverbullet
> Skovsgårdsvænget 21
> 8362 Hørning
> Tlf. +45 2962 7576
> Web: www.silverbullet.dk
>
>
>   


Mime
View raw message