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:54:48 GMT
Hi,

>If the OakException wraps a RepositoryException, we extract that one and
>rethrow it, it will come with an incorrect stack trace, no?

You mean, if we use "throw ((OakException) e).getOriginalException()" or
something similar when unwrapping?

> So it seems 
>we need to re-wrap.

Not sure what you mean with re-wrap actually...

>
>It seems we're converging on
>
>- OakException extends RuntimeException
>
>- OakExpception can carry RepositoryException
>
>Should we start with that, and see how this works? (Open a issue for it?)

Sounds good to me.

Regards,
Thomas


Mime
View raw message