Debian Codegraph @

tests/languages/javastacktrace/summary_feature.test

raw
1 java.lang.NullPointerException
2 java.lang.NullPointerException: This is bad
3 HighLevelException: MidLevelException: LowLevelException
4 HighLevelException: MidLevelException: LowLevelException: This is bad
5
6 Exception in thread "main" java.lang.RuntimeException: A test exception
7 Exception in thread "main" HighLevelException: MidLevelException: LowLevelException: This is bad
8
9 Caused by: Exception: This also includes causes and suppressed exceptions
10 Caused by: MidLevelException: LowLevelException
11 Caused by: com.example.myproject.MyProjectServletException
12
13 Suppressed: java.lang.RuntimeException: could not insert: [com.example.myproject.MyEntity]
14
15 ----------------------------------------------------
16
17 [
18 ["summary", [
19 ["exceptions", [
20 ["namespace", "java"],
21 ["punctuation", "."],
22 ["namespace", "lang"],
23 ["punctuation", "."],
24 ["class-name", "NullPointerException"]
25 ]]
26 ]],
27
28 ["summary", [
29 ["exceptions", [
30 ["namespace", "java"],
31 ["punctuation", "."],
32 ["namespace", "lang"],
33 ["punctuation", "."],
34 ["class-name", "NullPointerException"]
35 ]],
36 ["punctuation", ":"],
37 ["message", "This is bad"]
38 ]],
39
40 ["summary", [
41 ["exceptions", [
42 ["class-name", "HighLevelException"]
43 ]],
44 ["punctuation", ":"],
45 ["exceptions", [
46 ["class-name", "MidLevelException"]
47 ]],
48 ["punctuation", ":"],
49 ["exceptions", [
50 ["class-name", "LowLevelException"]
51 ]]
52 ]],
53
54 ["summary", [
55 ["exceptions", [
56 ["class-name", "HighLevelException"]
57 ]],
58 ["punctuation", ":"],
59 ["exceptions", [
60 ["class-name", "MidLevelException"]
61 ]],
62 ["punctuation", ":"],
63 ["exceptions", [
64 ["class-name", "LowLevelException"]
65 ]],
66 ["punctuation", ":"],
67 ["message", "This is bad"]
68 ]],
69
70 ["summary", [
71 ["keyword", "Exception in thread"],
72 ["string", "\"main\""],
73 ["exceptions", [
74 ["namespace", "java"],
75 ["punctuation", "."],
76 ["namespace", "lang"],
77 ["punctuation", "."],
78 ["class-name", "RuntimeException"]
79 ]],
80 ["punctuation", ":"],
81 ["message", "A test exception"]
82 ]],
83
84 ["summary", [
85 ["keyword", "Exception in thread"],
86 ["string", "\"main\""],
87 ["exceptions", [
88 ["class-name", "HighLevelException"]
89 ]],
90 ["punctuation", ":"],
91 ["exceptions", [
92 ["class-name", "MidLevelException"]
93 ]],
94 ["punctuation", ":"],
95 ["exceptions", [
96 ["class-name", "LowLevelException"]
97 ]],
98 ["punctuation", ":"],
99 ["message", "This is bad"]
100 ]],
101
102 ["summary", [
103 ["keyword", "Caused by"],
104 ["punctuation", ":"],
105 ["exceptions", [
106 ["class-name", "Exception"]
107 ]],
108 ["punctuation", ":"],
109 ["message", "This also includes causes and suppressed exceptions"]
110 ]],
111
112 ["summary", [
113 ["keyword", "Caused by"],
114 ["punctuation", ":"],
115 ["exceptions", [
116 ["class-name", "MidLevelException"]
117 ]],
118 ["punctuation", ":"],
119 ["exceptions", [
120 ["class-name", "LowLevelException"]
121 ]]
122 ]],
123
124 ["summary", [
125 ["keyword", "Caused by"],
126 ["punctuation", ":"],
127 ["exceptions", [
128 ["namespace", "com"],
129 ["punctuation", "."],
130 ["namespace", "example"],
131 ["punctuation", "."],
132 ["namespace", "myproject"],
133 ["punctuation", "."],
134 ["class-name", "MyProjectServletException"]
135 ]]
136 ]],
137
138 ["summary", [
139 ["keyword", "Suppressed"],
140 ["punctuation", ":"],
141 ["exceptions", [
142 ["namespace", "java"],
143 ["punctuation", "."],
144 ["namespace", "lang"],
145 ["punctuation", "."],
146 ["class-name", "RuntimeException"]
147 ]],
148 ["punctuation", ":"],
149 ["message", "could not insert: [com.example.myproject.MyEntity]"]
150 ]]
151 ]
152
153 ----------------------------------------------------
154
155 Checks for exception summaries.