That said, I don't think we should be overly aggressive about wrapping caught Exceptions in WikiException, because it tends to dilute to root cause, which might be more usefully dealt with upstream. For example, any of the Exceptions generated by core classes (and propagated upwards to the presentation tier) should be as specific as practical so we can redirect users gracefully.
I think that the only Exceptions that we really need to wrap are the ones from the JCR Repository (because it will throw about a dozen different exception types, most of which just describe how exactly the Repository failed). These can be wrapped in the ProviderException class, which already exists for this purpose.
/Janne
