johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hendrik Dev <hendrikde...@gmail.com>
Subject Re: jaxrs and exception handling
Date Thu, 23 Jul 2015 07:29:51 GMT
+1 for the simple solution (but it isn't it a very rare case that a
exception has a self reference to it as root root cause?)

On Thu, Jul 23, 2015 at 1:43 AM, Romain Manni-Bucau
<rmannibucau@gmail.com> wrote:
> Hi
>
> how should we handle exceptions having themself as root cause?
>
> Simple solution is to detect the loop and skip the serialization that said
> it can be valid as well - not sure somebody would do it with exception but
> for other types it can.
>
> Of course actual issue is to avoid Stackoverflow exception during
> serialization.
>
> Wdyt?
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau>
|
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> <http://www.tomitribe.com>



-- 
Hendrik Saly (salyh, hendrikdev22)
@hendrikdev22
PGP: 0x22D7F6EC

Mime
View raw message