jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Mueller <muel...@adobe.com>
Subject Re: Exception handling in oak-core
Date Thu, 03 May 2012 12:26:27 GMT

>I wouldn't want to catch RuntimeException. I'd prefer if oak-core would
>only throw OakException (extends RuntimeException), as suggested by
>Michael Dürig.


>I also think it would be good if these Oak exceptions could carry
>sufficient information to generate a JCR exception.


>The mappings that have been suggested by Michael and above would help,
>but we'd lose correctness in the call stack, right?

Do you mean instead of one simple stack trace you would get two (the
original one as "Caused by:")? I think that's OK. If it's really a problem
we could still use Exception.setStackTrace(..), but I don't think that's


View raw message