- public static void main(String[] args) throws Exception {
- try {
- try {
- try {
- testDeeper();
- } catch (Exception e) {
- throw new Exception("Less deep exception", e);
- }
- } catch (Exception e) {
- throw new RuntimeException("Top exception", e);
- }
- } catch (Exception e) {
- CmsExceptionsChain vjeSystemErrors = new CmsExceptionsChain(e);
- ObjectMapper objectMapper = new ObjectMapper();
- System.out.println(objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(vjeSystemErrors));
- e.printStackTrace();
- }
- }
-
- static void testDeeper() throws Exception {
- throw new IllegalStateException("Deep exception");
- }
+// public static void main(String[] args) throws Exception {
+// try {
+// try {
+// try {
+// testDeeper();
+// } catch (Exception e) {
+// throw new Exception("Less deep exception", e);
+// }
+// } catch (Exception e) {
+// throw new RuntimeException("Top exception", e);
+// }
+// } catch (Exception e) {
+// CmsExceptionsChain vjeSystemErrors = new CmsExceptionsChain(e);
+// ObjectMapper objectMapper = new ObjectMapper();
+// System.out.println(objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(vjeSystemErrors));
+// e.printStackTrace();
+// }
+// }
+//
+// static void testDeeper() throws Exception {
+// throw new IllegalStateException("Deep exception");
+// }