Hi, >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.
+1 >I also think it would be good if these Oak exceptions could carry >sufficient information to generate a JCR exception. +1 >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 necessary. Regards, Thomas
