Catching all java.lang.Error for logging purposes and allowing them to work their way up the stack
问题 Short version: How do I catch all java.lang.Error thrown in a particular section of code in order to log them, and also allow them to propogate up the call stack as if I hadn't caught them at all? Long version... In a section of code I want to catch all java.lang.Error in order to log them. But I also want to let the Error continue to work its way up the call stack so the behaviour would be the same as if I hadn't caught it at all. Additionally, I want to catch and log all java.lang.Exception