fluent-plugin-detect-exceptions 0.0.13 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,294 +16,295 @@ require_relative '../helper'
16
16
  require 'fluent/plugin/exception_detector'
17
17
 
18
18
  class ExceptionDetectorTest < Test::Unit::TestCase
19
- JAVA_EXC_PART1 = <<END.freeze
20
- Jul 09, 2015 3:23:29 PM com.google.devtools.search.cloud.feeder.MakeLog: RuntimeException: Run from this message!
21
- at com.my.app.Object.do$a1(MakeLog.java:50)
22
- at java.lang.Thing.call(Thing.java:10)
23
- END
19
+ JAVA_EXC_PART1 = <<~END_JAVA_PART1.freeze
20
+ Jul 09, 2015 3:23:29 PM com.google.devtools.search.cloud.feeder.MakeLog: RuntimeException: Run from this message!
21
+ at com.my.app.Object.do$a1(MakeLog.java:50)
22
+ at java.lang.Thing.call(Thing.java:10)
23
+ END_JAVA_PART1
24
24
 
25
- JAVA_EXC_PART2 = <<END.freeze
25
+ JAVA_EXC_PART2 = <<END_JAVA_PART2.freeze
26
26
  at com.my.app.Object.help(MakeLog.java:40)
27
27
  at sun.javax.API.method(API.java:100)
28
28
  at com.jetty.Framework.main(MakeLog.java:30)
29
- END
29
+ END_JAVA_PART2
30
30
 
31
31
  JAVA_EXC = (JAVA_EXC_PART1 + JAVA_EXC_PART2).freeze
32
32
 
33
- COMPLEX_JAVA_EXC = <<END.freeze
34
- javax.servlet.ServletException: Something bad happened
35
- at com.example.myproject.OpenSessionInViewFilter.doFilter(OpenSessionInViewFilter.java:60)
36
- at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
37
- at com.example.myproject.ExceptionHandlerFilter.doFilter(ExceptionHandlerFilter.java:28)
38
- at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
39
- at com.example.myproject.OutputBufferFilter.doFilter(OutputBufferFilter.java:33)
40
- at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
41
- at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
42
- at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
43
- at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
44
- at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
45
- at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
46
- at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
47
- at org.mortbay.jetty.Server.handle(Server.java:326)
48
- at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
49
- at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:943)
50
- at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
51
- at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
52
- at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
53
- at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
54
- at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
55
- Caused by: com.example.myproject.MyProjectServletException
56
- at com.example.myproject.MyServlet.doPost(MyServlet.java:169)
57
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
58
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
59
- at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
60
- at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
61
- at com.example.myproject.OpenSessionInViewFilter.doFilter(OpenSessionInViewFilter.java:30)
62
- ... 27 common frames omitted
63
- END
64
-
65
- NESTED_JAVA_EXC = <<END.freeze
66
- java.lang.RuntimeException: javax.mail.SendFailedException: Invalid Addresses;
67
- nested exception is:
68
- com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 <[REDACTED_EMAIL_ADDRESS]>... Relaying denied
69
-
70
- at com.nethunt.crm.api.server.adminsync.AutomaticEmailFacade.sendWithSmtp(AutomaticEmailFacade.java:236)
71
- at com.nethunt.crm.api.server.adminsync.AutomaticEmailFacade.sendSingleEmail(AutomaticEmailFacade.java:285)
72
- at com.nethunt.crm.api.server.adminsync.AutomaticEmailFacade.lambda$sendSingleEmail$3(AutomaticEmailFacade.java:254)
73
- at java.util.Optional.ifPresent(Optional.java:159)
74
- at com.nethunt.crm.api.server.adminsync.AutomaticEmailFacade.sendSingleEmail(AutomaticEmailFacade.java:253)
75
- at com.nethunt.crm.api.server.adminsync.AutomaticEmailFacade.sendSingleEmail(AutomaticEmailFacade.java:249)
76
- at com.nethunt.crm.api.email.EmailSender.lambda$notifyPerson$0(EmailSender.java:80)
77
- at com.nethunt.crm.api.util.ManagedExecutor.lambda$execute$0(ManagedExecutor.java:36)
78
- at com.nethunt.crm.api.util.RequestContextActivator.lambda$withRequestContext$0(RequestContextActivator.java:36)
79
- at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
80
- at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
81
- at java.base/java.lang.Thread.run(Thread.java:748)
82
- Caused by: javax.mail.SendFailedException: Invalid Addresses;
83
- nested exception is:
84
- com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 <[REDACTED_EMAIL_ADDRESS]>... Relaying denied
85
-
86
- at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:2064)
87
- at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1286)
88
- at com.nethunt.crm.api.server.adminsync.AutomaticEmailFacade.sendWithSmtp(AutomaticEmailFacade.java:229)
89
- ... 12 more
90
- Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 <[REDACTED_EMAIL_ADDRESS]>... Relaying denied
91
- END
92
-
93
- NODE_JS_EXC = <<END.freeze
94
- ReferenceError: myArray is not defined
95
- at next (/app/node_modules/express/lib/router/index.js:256:14)
96
- at /app/node_modules/express/lib/router/index.js:615:15
97
- at next (/app/node_modules/express/lib/router/index.js:271:10)
98
- at Function.process_params (/app/node_modules/express/lib/router/index.js:330:12)
99
- at /app/node_modules/express/lib/router/index.js:277:22
100
- at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
101
- at Route.dispatch (/app/node_modules/express/lib/router/route.js:112:3)
102
- at next (/app/node_modules/express/lib/router/route.js:131:13)
103
- at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
104
- at /app/app.js:52:3
105
- END
106
-
107
- CLIENT_JS_EXC = <<END.freeze
108
- Error
109
- at bls (<anonymous>:3:9)
110
- at <anonymous>:6:4
111
- at a_function_name
112
- at Object.InjectedScript._evaluateOn (http://<anonymous>/file.js?foo=bar:875:140)
113
- at Object.InjectedScript.evaluate (<anonymous>)
114
- END
115
-
116
- V8_JS_EXC = <<END.freeze
117
- V8 errors stack trace
118
- eval at Foo.a (eval at Bar.z (myscript.js:10:3))
119
- at new Contructor.Name (native)
120
- at new FunctionName (unknown location)
121
- at Type.functionName [as methodName] (file(copy).js?query='yes':12:9)
122
- at functionName [as methodName] (native)
123
- at Type.main(sample(copy).js:6:4)
124
- END
125
-
126
- PYTHON_EXC = <<END.freeze
127
- Traceback (most recent call last):
128
- File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1535, in __call__
129
- rv = self.handle_exception(request, response, e)
130
- File "/base/data/home/apps/s~nearfieldspy/1.378705245900539993/nearfieldspy.py", line 17, in start
131
- return get()
132
- File "/base/data/home/apps/s~nearfieldspy/1.378705245900539993/nearfieldspy.py", line 5, in get
133
- raise Exception('spam', 'eggs')
134
- Exception: ('spam', 'eggs')
135
- END
136
-
137
- PHP_EXC = <<END.freeze
138
- exception 'Exception' with message 'Custom exception' in /home/joe/work/test-php/test.php:5
139
- Stack trace:
140
- #0 /home/joe/work/test-php/test.php(9): func1()
141
- #1 /home/joe/work/test-php/test.php(13): func2()
142
- #2 {main}
143
- END
144
-
145
- PHP_ON_GAE_EXC = <<END.freeze
146
- PHP Fatal error: Uncaught exception 'Exception' with message 'message' in /base/data/home/apps/s~crash-example-php/1.388306779641080894/errors.php:60
147
- Stack trace:
148
- #0 [internal function]: ErrorEntryGenerator::{closure}()
149
- #1 /base/data/home/apps/s~crash-example-php/1.388306779641080894/errors.php(20): call_user_func_array(Object(Closure), Array)
150
- #2 /base/data/home/apps/s~crash-example-php/1.388306779641080894/index.php(36): ErrorEntry->__call('raise', Array)
151
- #3 /base/data/home/apps/s~crash-example-php/1.388306779641080894/index.php(36): ErrorEntry->raise()
152
- #4 {main}
153
- thrown in /base/data/home/apps/s~crash-example-php/1.388306779641080894/errors.php on line 60
154
- END
155
-
156
- GO_EXC = <<END.freeze
157
- panic: my panic
158
-
159
- goroutine 4 [running]:
160
- panic(0x45cb40, 0x47ad70)
161
- /usr/local/go/src/runtime/panic.go:542 +0x46c fp=0xc42003f7b8 sp=0xc42003f710 pc=0x422f7c
162
- main.main.func1(0xc420024120)
163
- foo.go:6 +0x39 fp=0xc42003f7d8 sp=0xc42003f7b8 pc=0x451339
164
- runtime.goexit()
165
- /usr/local/go/src/runtime/asm_amd64.s:2337 +0x1 fp=0xc42003f7e0 sp=0xc42003f7d8 pc=0x44b4d1
166
- created by main.main
167
- foo.go:5 +0x58
168
-
169
- goroutine 1 [chan receive]:
170
- runtime.gopark(0x4739b8, 0xc420024178, 0x46fcd7, 0xc, 0xc420028e17, 0x3)
171
- /usr/local/go/src/runtime/proc.go:280 +0x12c fp=0xc420053e30 sp=0xc420053e00 pc=0x42503c
172
- runtime.goparkunlock(0xc420024178, 0x46fcd7, 0xc, 0x1000f010040c217, 0x3)
173
- /usr/local/go/src/runtime/proc.go:286 +0x5e fp=0xc420053e70 sp=0xc420053e30 pc=0x42512e
174
- runtime.chanrecv(0xc420024120, 0x0, 0xc420053f01, 0x4512d8)
175
- /usr/local/go/src/runtime/chan.go:506 +0x304 fp=0xc420053f20 sp=0xc420053e70 pc=0x4046b4
176
- runtime.chanrecv1(0xc420024120, 0x0)
177
- /usr/local/go/src/runtime/chan.go:388 +0x2b fp=0xc420053f50 sp=0xc420053f20 pc=0x40439b
178
- main.main()
179
- foo.go:9 +0x6f fp=0xc420053f80 sp=0xc420053f50 pc=0x4512ef
180
- runtime.main()
181
- /usr/local/go/src/runtime/proc.go:185 +0x20d fp=0xc420053fe0 sp=0xc420053f80 pc=0x424bad
182
- runtime.goexit()
183
- /usr/local/go/src/runtime/asm_amd64.s:2337 +0x1 fp=0xc420053fe8 sp=0xc420053fe0 pc=0x44b4d1
184
-
185
- goroutine 2 [force gc (idle)]:
186
- runtime.gopark(0x4739b8, 0x4ad720, 0x47001e, 0xf, 0x14, 0x1)
187
- /usr/local/go/src/runtime/proc.go:280 +0x12c fp=0xc42003e768 sp=0xc42003e738 pc=0x42503c
188
- runtime.goparkunlock(0x4ad720, 0x47001e, 0xf, 0xc420000114, 0x1)
189
- /usr/local/go/src/runtime/proc.go:286 +0x5e fp=0xc42003e7a8 sp=0xc42003e768 pc=0x42512e
190
- runtime.forcegchelper()
191
- /usr/local/go/src/runtime/proc.go:238 +0xcc fp=0xc42003e7e0 sp=0xc42003e7a8 pc=0x424e5c
192
- runtime.goexit()
193
- /usr/local/go/src/runtime/asm_amd64.s:2337 +0x1 fp=0xc42003e7e8 sp=0xc42003e7e0 pc=0x44b4d1
194
- created by runtime.init.4
195
- /usr/local/go/src/runtime/proc.go:227 +0x35
196
-
197
- goroutine 3 [GC sweep wait]:
198
- runtime.gopark(0x4739b8, 0x4ad7e0, 0x46fdd2, 0xd, 0x419914, 0x1)
199
- /usr/local/go/src/runtime/proc.go:280 +0x12c fp=0xc42003ef60 sp=0xc42003ef30 pc=0x42503c
200
- runtime.goparkunlock(0x4ad7e0, 0x46fdd2, 0xd, 0x14, 0x1)
201
- /usr/local/go/src/runtime/proc.go:286 +0x5e fp=0xc42003efa0 sp=0xc42003ef60 pc=0x42512e
202
- runtime.bgsweep(0xc42001e150)
203
- /usr/local/go/src/runtime/mgcsweep.go:52 +0xa3 fp=0xc42003efd8 sp=0xc42003efa0 pc=0x419973
204
- runtime.goexit()
205
- /usr/local/go/src/runtime/asm_amd64.s:2337 +0x1 fp=0xc42003efe0 sp=0xc42003efd8 pc=0x44b4d1
206
- created by runtime.gcenable
207
- /usr/local/go/src/runtime/mgc.go:216 +0x58
208
- END
209
-
210
- GO_ON_GAE_EXC = <<END.freeze
211
- panic: runtime error: index out of range
212
-
213
- goroutine 12 [running]:
214
- main88989.memoryAccessException()
215
- crash_example_go.go:58 +0x12a
216
- main88989.handler(0x2afb7042a408, 0xc01042f880, 0xc0104d3450)
217
- crash_example_go.go:36 +0x7ec
218
- net/http.HandlerFunc.ServeHTTP(0x13e5128, 0x2afb7042a408, 0xc01042f880, 0xc0104d3450)
219
- go/src/net/http/server.go:1265 +0x56
220
- net/http.(*ServeMux).ServeHTTP(0xc01045cab0, 0x2afb7042a408, 0xc01042f880, 0xc0104d3450)
221
- go/src/net/http/server.go:1541 +0x1b4
222
- appengine_internal.executeRequestSafely(0xc01042f880, 0xc0104d3450)
223
- go/src/appengine_internal/api_prod.go:288 +0xb7
224
- appengine_internal.(*server).HandleRequest(0x15819b0, 0xc010401560, 0xc0104c8180, 0xc010431380, 0x0, 0x0)
225
- go/src/appengine_internal/api_prod.go:222 +0x102b
226
- reflect.Value.call(0x1243fe0, 0x15819b0, 0x113, 0x12c8a20, 0x4, 0xc010485f78, 0x3, 0x3, 0x0, 0x0, ...)
227
- /tmp/appengine/go/src/reflect/value.go:419 +0x10fd
228
- reflect.Value.Call(0x1243fe0, 0x15819b0, 0x113, 0xc010485f78, 0x3, 0x3, 0x0, 0x0, 0x0)
229
- /tmp/ap
230
- END
231
-
232
- GO_SIGNAL_EXC = <<END.freeze
233
- panic: runtime error: invalid memory address or nil pointer dereference
234
- [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x7fd34f]
235
-
236
- goroutine 5 [running]:
237
- panics.nilPtrDereference()
238
- panics/panics.go:33 +0x1f
239
- panics.Wait()
240
- panics/panics.go:16 +0x3b
241
- created by main.main
242
- server.go:20 +0x91
243
- END
244
-
245
- GO_HTTP = <<END.freeze
246
- 2019/01/15 07:48:05 http: panic serving [::1]:54143: test panic
247
- goroutine 24 [running]:
248
- net/http.(*conn).serve.func1(0xc00007eaa0)
249
- /usr/local/go/src/net/http/server.go:1746 +0xd0
250
- panic(0x12472a0, 0x12ece10)
251
- /usr/local/go/src/runtime/panic.go:513 +0x1b9
252
- main.doPanic(0x12f0ea0, 0xc00010e1c0, 0xc000104400)
253
- /Users/ingvar/src/go/src/httppanic.go:8 +0x39
254
- net/http.HandlerFunc.ServeHTTP(0x12be2e8, 0x12f0ea0, 0xc00010e1c0, 0xc000104400)
255
- /usr/local/go/src/net/http/server.go:1964 +0x44
256
- net/http.(*ServeMux).ServeHTTP(0x14a17a0, 0x12f0ea0, 0xc00010e1c0, 0xc000104400)
257
- /usr/local/go/src/net/http/server.go:2361 +0x127
258
- net/http.serverHandler.ServeHTTP(0xc000085040, 0x12f0ea0, 0xc00010e1c0, 0xc000104400)
259
- /usr/local/go/src/net/http/server.go:2741 +0xab
260
- net/http.(*conn).serve(0xc00007eaa0, 0x12f10a0, 0xc00008a780)
261
- /usr/local/go/src/net/http/server.go:1847 +0x646
262
- created by net/http.(*Server).Serve
263
- /usr/local/go/src/net/http/server.go:2851 +0x2f5
264
- END
265
- CSHARP_EXC = <<END.freeze
266
- System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
267
- at System.Collections.Generic.Dictionary`2[System.String,System.Collections.Generic.Dictionary`2[System.Int32,System.Double]].get_Item (System.String key) [0x00000] in <filename unknown>:0
268
- at File3.Consolidator_Class.Function5 (System.Collections.Generic.Dictionary`2 names, System.Text.StringBuilder param_4) [0x00007] in /usr/local/google/home/Csharp/another file.csharp:9
269
- at File3.Consolidator_Class.Function4 (System.Text.StringBuilder param_4, System.Double[,,] array) [0x00013] in /usr/local/google/home/Csharp/another file.csharp:23
270
- at File3.Consolidator_Class.Function3 (Int32 param_3) [0x0000f] in /usr/local/google/home/Csharp/another file.csharp:27
271
- at File3.Consolidator_Class.Function3 (System.Text.StringBuilder param_3) [0x00007] in /usr/local/google/home/Csharp/another file.csharp:32
272
- at File2.Processor.Function2 (System.Int32& param_2, System.Collections.Generic.Stack`1& numbers) [0x00003] in /usr/local/google/home/Csharp/File2.csharp:19
273
- at File2.Processor.Random2 () [0x00037] in /usr/local/google/home/Csharp/File2.csharp:28
274
- at File2.Processor.Function1 (Int32 param_1, System.Collections.Generic.Dictionary`2 map) [0x00007] in /usr/local/google/home/Csharp/File2.csharp:34
275
- at Main.Welcome+<Main>c__AnonStorey0.<>m__0 () [0x00006] in /usr/local/google/home/Csharp/hello.csharp:48
276
- at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0
277
- END
278
-
279
- CSHARP_NESTED_EXC = <<END.freeze
280
- System.InvalidOperationException: This is the outer exception ---> System.InvalidOperationException: This is the inner exception
281
- at ExampleApp.NestedExceptionExample.LowestLevelMethod() in c:/ExampleApp/ExampleApp/NestedExceptionExample.cs:line 33
282
- at ExampleApp.NestedExceptionExample.ThirdLevelMethod() in c:/ExampleApp/ExampleApp/NestedExceptionExample.cs:line 28
283
- at ExampleApp.NestedExceptionExample.SecondLevelMethod() in c:/ExampleApp/ExampleApp/NestedExceptionExample.cs:line 18
284
- --- End of inner exception stack trace ---
285
- at ExampleApp.NestedExceptionExample.SecondLevelMethod() in c:/ExampleApp/ExampleApp/NestedExceptionExample.cs:line 22
286
- at ExampleApp.NestedExceptionExample.TopLevelMethod() in c:/ExampleApp/ExampleApp/NestedExceptionExample.cs:line 11
287
- at ExampleApp.Program.Main(String[] args) in c:/ExampleApp/ExampleApp/Program.cs:line 11
288
- END
289
-
290
- CSHARP_ASYNC_EXC = <<END.freeze
291
- System.InvalidOperationException: This is an exception
292
- at ExampleApp2.AsyncExceptionExample.LowestLevelMethod() in c:/ExampleApp/ExampleApp/AsyncExceptionExample.cs:line 36
293
- at ExampleApp2.AsyncExceptionExample.<ThirdLevelMethod>d__2.MoveNext() in c:/ExampleApp/ExampleApp/AsyncExceptionExample.cs:line 31
294
- --- End of stack trace from previous location where exception was thrown ---
295
- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
296
- at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
297
- at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
298
- at ExampleApp2.AsyncExceptionExample.<SecondLevelMethod>d__1.MoveNext() in c:/ExampleApp/ExampleApp/AsyncExceptionExample.cs:line 25
299
- --- End of stack trace from previous location where exception was thrown ---
300
- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
301
- at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
302
- at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
303
- at ExampleApp2.AsyncExceptionExample.<TopLevelMethod>d__0.MoveNext() in c:/ExampleApp/ExampleApp/AsyncExceptionExample.cs:line 14
304
- END
305
-
306
- RUBY_EXC = <<END.freeze
33
+ COMPLEX_JAVA_EXC = <<~END_COMPLEX_JAVA.freeze
34
+ javax.servlet.ServletException: Something bad happened
35
+ at com.example.myproject.OpenSessionInViewFilter.doFilter(OpenSessionInViewFilter.java:60)
36
+ at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
37
+ at com.example.myproject.ExceptionHandlerFilter.doFilter(ExceptionHandlerFilter.java:28)
38
+ at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
39
+ at com.example.myproject.OutputBufferFilter.doFilter(OutputBufferFilter.java:33)
40
+ at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
41
+ at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
42
+ at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
43
+ at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
44
+ at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
45
+ at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
46
+ at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
47
+ at org.mortbay.jetty.Server.handle(Server.java:326)
48
+ at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
49
+ at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:943)
50
+ at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
51
+ at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
52
+ at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
53
+ at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
54
+ at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
55
+ Caused by: com.example.myproject.MyProjectServletException
56
+ at com.example.myproject.MyServlet.doPost(MyServlet.java:169)
57
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
58
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
59
+ at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
60
+ at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
61
+ at com.example.myproject.OpenSessionInViewFilter.doFilter(OpenSessionInViewFilter.java:30)
62
+ ... 27 common frames omitted
63
+ END_COMPLEX_JAVA
64
+
65
+ NESTED_JAVA_EXC = <<~END_NESTED_JAVA.freeze
66
+ java.lang.RuntimeException: javax.mail.SendFailedException: Invalid Addresses;
67
+ nested exception is:
68
+ com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 <[REDACTED_EMAIL_ADDRESS]>... Relaying denied
69
+
70
+ at com.nethunt.crm.api.server.adminsync.AutomaticEmailFacade.sendWithSmtp(AutomaticEmailFacade.java:236)
71
+ at com.nethunt.crm.api.server.adminsync.AutomaticEmailFacade.sendSingleEmail(AutomaticEmailFacade.java:285)
72
+ at com.nethunt.crm.api.server.adminsync.AutomaticEmailFacade.lambda$sendSingleEmail$3(AutomaticEmailFacade.java:254)
73
+ at java.util.Optional.ifPresent(Optional.java:159)
74
+ at com.nethunt.crm.api.server.adminsync.AutomaticEmailFacade.sendSingleEmail(AutomaticEmailFacade.java:253)
75
+ at com.nethunt.crm.api.server.adminsync.AutomaticEmailFacade.sendSingleEmail(AutomaticEmailFacade.java:249)
76
+ at com.nethunt.crm.api.email.EmailSender.lambda$notifyPerson$0(EmailSender.java:80)
77
+ at com.nethunt.crm.api.util.ManagedExecutor.lambda$execute$0(ManagedExecutor.java:36)
78
+ at com.nethunt.crm.api.util.RequestContextActivator.lambda$withRequestContext$0(RequestContextActivator.java:36)
79
+ at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
80
+ at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
81
+ at java.base/java.lang.Thread.run(Thread.java:748)
82
+ Caused by: javax.mail.SendFailedException: Invalid Addresses;
83
+ nested exception is:
84
+ com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 <[REDACTED_EMAIL_ADDRESS]>... Relaying denied
85
+
86
+ at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:2064)
87
+ at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1286)
88
+ at com.nethunt.crm.api.server.adminsync.AutomaticEmailFacade.sendWithSmtp(AutomaticEmailFacade.java:229)
89
+ ... 12 more
90
+ Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 <[REDACTED_EMAIL_ADDRESS]>... Relaying denied
91
+ END_NESTED_JAVA
92
+
93
+ NODE_JS_EXC = <<~END_NODE_JS.freeze
94
+ ReferenceError: myArray is not defined
95
+ at next (/app/node_modules/express/lib/router/index.js:256:14)
96
+ at /app/node_modules/express/lib/router/index.js:615:15
97
+ at next (/app/node_modules/express/lib/router/index.js:271:10)
98
+ at Function.process_params (/app/node_modules/express/lib/router/index.js:330:12)
99
+ at /app/node_modules/express/lib/router/index.js:277:22
100
+ at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
101
+ at Route.dispatch (/app/node_modules/express/lib/router/route.js:112:3)
102
+ at next (/app/node_modules/express/lib/router/route.js:131:13)
103
+ at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
104
+ at /app/app.js:52:3
105
+ END_NODE_JS
106
+
107
+ CLIENT_JS_EXC = <<~END_CLIENT_JS.freeze
108
+ Error
109
+ at bls (<anonymous>:3:9)
110
+ at <anonymous>:6:4
111
+ at a_function_name
112
+ at Object.InjectedScript._evaluateOn (http://<anonymous>/file.js?foo=bar:875:140)
113
+ at Object.InjectedScript.evaluate (<anonymous>)
114
+ END_CLIENT_JS
115
+
116
+ V8_JS_EXC = <<~END_V8_JS.freeze
117
+ V8 errors stack trace
118
+ eval at Foo.a (eval at Bar.z (myscript.js:10:3))
119
+ at new Contructor.Name (native)
120
+ at new FunctionName (unknown location)
121
+ at Type.functionName [as methodName] (file(copy).js?query='yes':12:9)
122
+ at functionName [as methodName] (native)
123
+ at Type.main(sample(copy).js:6:4)
124
+ END_V8_JS
125
+
126
+ PYTHON_EXC = <<~END_PYTHON.freeze
127
+ Traceback (most recent call last):
128
+ File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1535, in __call__
129
+ rv = self.handle_exception(request, response, e)
130
+ File "/base/data/home/apps/s~nearfieldspy/1.378705245900539993/nearfieldspy.py", line 17, in start
131
+ return get()
132
+ File "/base/data/home/apps/s~nearfieldspy/1.378705245900539993/nearfieldspy.py", line 5, in get
133
+ raise Exception('spam', 'eggs')
134
+ Exception: ('spam', 'eggs')
135
+ END_PYTHON
136
+
137
+ PHP_EXC = <<~END_PHP.freeze
138
+ exception 'Exception' with message 'Custom exception' in /home/joe/work/test-php/test.php:5
139
+ Stack trace:
140
+ #0 /home/joe/work/test-php/test.php(9): func1()
141
+ #1 /home/joe/work/test-php/test.php(13): func2()
142
+ #2 {main}
143
+ END_PHP
144
+
145
+ PHP_ON_GAE_EXC = <<~END_PHP_ON_GAE.freeze
146
+ PHP Fatal error: Uncaught exception 'Exception' with message 'message' in /base/data/home/apps/s~crash-example-php/1.388306779641080894/errors.php:60
147
+ Stack trace:
148
+ #0 [internal function]: ErrorEntryGenerator::{closure}()
149
+ #1 /base/data/home/apps/s~crash-example-php/1.388306779641080894/errors.php(20): call_user_func_array(Object(Closure), Array)
150
+ #2 /base/data/home/apps/s~crash-example-php/1.388306779641080894/index.php(36): ErrorEntry->__call('raise', Array)
151
+ #3 /base/data/home/apps/s~crash-example-php/1.388306779641080894/index.php(36): ErrorEntry->raise()
152
+ #4 {main}
153
+ thrown in /base/data/home/apps/s~crash-example-php/1.388306779641080894/errors.php on line 60
154
+ END_PHP_ON_GAE
155
+
156
+ GO_EXC = <<~END_GO.freeze
157
+ panic: my panic
158
+
159
+ goroutine 4 [running]:
160
+ panic(0x45cb40, 0x47ad70)
161
+ /usr/local/go/src/runtime/panic.go:542 +0x46c fp=0xc42003f7b8 sp=0xc42003f710 pc=0x422f7c
162
+ main.main.func1(0xc420024120)
163
+ foo.go:6 +0x39 fp=0xc42003f7d8 sp=0xc42003f7b8 pc=0x451339
164
+ runtime.goexit()
165
+ /usr/local/go/src/runtime/asm_amd64.s:2337 +0x1 fp=0xc42003f7e0 sp=0xc42003f7d8 pc=0x44b4d1
166
+ created by main.main
167
+ foo.go:5 +0x58
168
+
169
+ goroutine 1 [chan receive]:
170
+ runtime.gopark(0x4739b8, 0xc420024178, 0x46fcd7, 0xc, 0xc420028e17, 0x3)
171
+ /usr/local/go/src/runtime/proc.go:280 +0x12c fp=0xc420053e30 sp=0xc420053e00 pc=0x42503c
172
+ runtime.goparkunlock(0xc420024178, 0x46fcd7, 0xc, 0x1000f010040c217, 0x3)
173
+ /usr/local/go/src/runtime/proc.go:286 +0x5e fp=0xc420053e70 sp=0xc420053e30 pc=0x42512e
174
+ runtime.chanrecv(0xc420024120, 0x0, 0xc420053f01, 0x4512d8)
175
+ /usr/local/go/src/runtime/chan.go:506 +0x304 fp=0xc420053f20 sp=0xc420053e70 pc=0x4046b4
176
+ runtime.chanrecv1(0xc420024120, 0x0)
177
+ /usr/local/go/src/runtime/chan.go:388 +0x2b fp=0xc420053f50 sp=0xc420053f20 pc=0x40439b
178
+ main.main()
179
+ foo.go:9 +0x6f fp=0xc420053f80 sp=0xc420053f50 pc=0x4512ef
180
+ runtime.main()
181
+ /usr/local/go/src/runtime/proc.go:185 +0x20d fp=0xc420053fe0 sp=0xc420053f80 pc=0x424bad
182
+ runtime.goexit()
183
+ /usr/local/go/src/runtime/asm_amd64.s:2337 +0x1 fp=0xc420053fe8 sp=0xc420053fe0 pc=0x44b4d1
184
+
185
+ goroutine 2 [force gc (idle)]:
186
+ runtime.gopark(0x4739b8, 0x4ad720, 0x47001e, 0xf, 0x14, 0x1)
187
+ /usr/local/go/src/runtime/proc.go:280 +0x12c fp=0xc42003e768 sp=0xc42003e738 pc=0x42503c
188
+ runtime.goparkunlock(0x4ad720, 0x47001e, 0xf, 0xc420000114, 0x1)
189
+ /usr/local/go/src/runtime/proc.go:286 +0x5e fp=0xc42003e7a8 sp=0xc42003e768 pc=0x42512e
190
+ runtime.forcegchelper()
191
+ /usr/local/go/src/runtime/proc.go:238 +0xcc fp=0xc42003e7e0 sp=0xc42003e7a8 pc=0x424e5c
192
+ runtime.goexit()
193
+ /usr/local/go/src/runtime/asm_amd64.s:2337 +0x1 fp=0xc42003e7e8 sp=0xc42003e7e0 pc=0x44b4d1
194
+ created by runtime.init.4
195
+ /usr/local/go/src/runtime/proc.go:227 +0x35
196
+
197
+ goroutine 3 [GC sweep wait]:
198
+ runtime.gopark(0x4739b8, 0x4ad7e0, 0x46fdd2, 0xd, 0x419914, 0x1)
199
+ /usr/local/go/src/runtime/proc.go:280 +0x12c fp=0xc42003ef60 sp=0xc42003ef30 pc=0x42503c
200
+ runtime.goparkunlock(0x4ad7e0, 0x46fdd2, 0xd, 0x14, 0x1)
201
+ /usr/local/go/src/runtime/proc.go:286 +0x5e fp=0xc42003efa0 sp=0xc42003ef60 pc=0x42512e
202
+ runtime.bgsweep(0xc42001e150)
203
+ /usr/local/go/src/runtime/mgcsweep.go:52 +0xa3 fp=0xc42003efd8 sp=0xc42003efa0 pc=0x419973
204
+ runtime.goexit()
205
+ /usr/local/go/src/runtime/asm_amd64.s:2337 +0x1 fp=0xc42003efe0 sp=0xc42003efd8 pc=0x44b4d1
206
+ created by runtime.gcenable
207
+ /usr/local/go/src/runtime/mgc.go:216 +0x58
208
+ END_GO
209
+
210
+ GO_ON_GAE_EXC = <<~END_GO_ON_GAE.freeze
211
+ panic: runtime error: index out of range
212
+
213
+ goroutine 12 [running]:
214
+ main88989.memoryAccessException()
215
+ crash_example_go.go:58 +0x12a
216
+ main88989.handler(0x2afb7042a408, 0xc01042f880, 0xc0104d3450)
217
+ crash_example_go.go:36 +0x7ec
218
+ net/http.HandlerFunc.ServeHTTP(0x13e5128, 0x2afb7042a408, 0xc01042f880, 0xc0104d3450)
219
+ go/src/net/http/server.go:1265 +0x56
220
+ net/http.(*ServeMux).ServeHTTP(0xc01045cab0, 0x2afb7042a408, 0xc01042f880, 0xc0104d3450)
221
+ go/src/net/http/server.go:1541 +0x1b4
222
+ appengine_internal.executeRequestSafely(0xc01042f880, 0xc0104d3450)
223
+ go/src/appengine_internal/api_prod.go:288 +0xb7
224
+ appengine_internal.(*server).HandleRequest(0x15819b0, 0xc010401560, 0xc0104c8180, 0xc010431380, 0x0, 0x0)
225
+ go/src/appengine_internal/api_prod.go:222 +0x102b
226
+ reflect.Value.call(0x1243fe0, 0x15819b0, 0x113, 0x12c8a20, 0x4, 0xc010485f78, 0x3, 0x3, 0x0, 0x0, ...)
227
+ /tmp/appengine/go/src/reflect/value.go:419 +0x10fd
228
+ reflect.Value.Call(0x1243fe0, 0x15819b0, 0x113, 0xc010485f78, 0x3, 0x3, 0x0, 0x0, 0x0)
229
+ /tmp/ap
230
+ END_GO_ON_GAE
231
+
232
+ GO_SIGNAL_EXC = <<~END_GO_SIGNAL.freeze
233
+ panic: runtime error: invalid memory address or nil pointer dereference
234
+ [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x7fd34f]
235
+
236
+ goroutine 5 [running]:
237
+ panics.nilPtrDereference()
238
+ panics/panics.go:33 +0x1f
239
+ panics.Wait()
240
+ panics/panics.go:16 +0x3b
241
+ created by main.main
242
+ server.go:20 +0x91
243
+ END_GO_SIGNAL
244
+
245
+ GO_HTTP = <<~END_GO_HTTP.freeze
246
+ 2019/01/15 07:48:05 http: panic serving [::1]:54143: test panic
247
+ goroutine 24 [running]:
248
+ net/http.(*conn).serve.func1(0xc00007eaa0)
249
+ /usr/local/go/src/net/http/server.go:1746 +0xd0
250
+ panic(0x12472a0, 0x12ece10)
251
+ /usr/local/go/src/runtime/panic.go:513 +0x1b9
252
+ main.doPanic(0x12f0ea0, 0xc00010e1c0, 0xc000104400)
253
+ /Users/ingvar/src/go/src/httppanic.go:8 +0x39
254
+ net/http.HandlerFunc.ServeHTTP(0x12be2e8, 0x12f0ea0, 0xc00010e1c0, 0xc000104400)
255
+ /usr/local/go/src/net/http/server.go:1964 +0x44
256
+ net/http.(*ServeMux).ServeHTTP(0x14a17a0, 0x12f0ea0, 0xc00010e1c0, 0xc000104400)
257
+ /usr/local/go/src/net/http/server.go:2361 +0x127
258
+ net/http.serverHandler.ServeHTTP(0xc000085040, 0x12f0ea0, 0xc00010e1c0, 0xc000104400)
259
+ /usr/local/go/src/net/http/server.go:2741 +0xab
260
+ net/http.(*conn).serve(0xc00007eaa0, 0x12f10a0, 0xc00008a780)
261
+ /usr/local/go/src/net/http/server.go:1847 +0x646
262
+ created by net/http.(*Server).Serve
263
+ /usr/local/go/src/net/http/server.go:2851 +0x2f5
264
+ END_GO_HTTP
265
+
266
+ CSHARP_EXC = <<~END_CSHARP.freeze
267
+ System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
268
+ at System.Collections.Generic.Dictionary`2[System.String,System.Collections.Generic.Dictionary`2[System.Int32,System.Double]].get_Item (System.String key) [0x00000] in <filename unknown>:0
269
+ at File3.Consolidator_Class.Function5 (System.Collections.Generic.Dictionary`2 names, System.Text.StringBuilder param_4) [0x00007] in /usr/local/google/home/Csharp/another file.csharp:9
270
+ at File3.Consolidator_Class.Function4 (System.Text.StringBuilder param_4, System.Double[,,] array) [0x00013] in /usr/local/google/home/Csharp/another file.csharp:23
271
+ at File3.Consolidator_Class.Function3 (Int32 param_3) [0x0000f] in /usr/local/google/home/Csharp/another file.csharp:27
272
+ at File3.Consolidator_Class.Function3 (System.Text.StringBuilder param_3) [0x00007] in /usr/local/google/home/Csharp/another file.csharp:32
273
+ at File2.Processor.Function2 (System.Int32& param_2, System.Collections.Generic.Stack`1& numbers) [0x00003] in /usr/local/google/home/Csharp/File2.csharp:19
274
+ at File2.Processor.Random2 () [0x00037] in /usr/local/google/home/Csharp/File2.csharp:28
275
+ at File2.Processor.Function1 (Int32 param_1, System.Collections.Generic.Dictionary`2 map) [0x00007] in /usr/local/google/home/Csharp/File2.csharp:34
276
+ at Main.Welcome+<Main>c__AnonStorey0.<>m__0 () [0x00006] in /usr/local/google/home/Csharp/hello.csharp:48
277
+ at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0
278
+ END_CSHARP
279
+
280
+ CSHARP_NESTED_EXC = <<~END_CSHARP_NESTED.freeze
281
+ System.InvalidOperationException: This is the outer exception ---> System.InvalidOperationException: This is the inner exception
282
+ at ExampleApp.NestedExceptionExample.LowestLevelMethod() in c:/ExampleApp/ExampleApp/NestedExceptionExample.cs:line 33
283
+ at ExampleApp.NestedExceptionExample.ThirdLevelMethod() in c:/ExampleApp/ExampleApp/NestedExceptionExample.cs:line 28
284
+ at ExampleApp.NestedExceptionExample.SecondLevelMethod() in c:/ExampleApp/ExampleApp/NestedExceptionExample.cs:line 18
285
+ --- End of inner exception stack trace ---
286
+ at ExampleApp.NestedExceptionExample.SecondLevelMethod() in c:/ExampleApp/ExampleApp/NestedExceptionExample.cs:line 22
287
+ at ExampleApp.NestedExceptionExample.TopLevelMethod() in c:/ExampleApp/ExampleApp/NestedExceptionExample.cs:line 11
288
+ at ExampleApp.Program.Main(String[] args) in c:/ExampleApp/ExampleApp/Program.cs:line 11
289
+ END_CSHARP_NESTED
290
+
291
+ CSHARP_ASYNC_EXC = <<~END_CSHARP_ASYNC.freeze
292
+ System.InvalidOperationException: This is an exception
293
+ at ExampleApp2.AsyncExceptionExample.LowestLevelMethod() in c:/ExampleApp/ExampleApp/AsyncExceptionExample.cs:line 36
294
+ at ExampleApp2.AsyncExceptionExample.<ThirdLevelMethod>d__2.MoveNext() in c:/ExampleApp/ExampleApp/AsyncExceptionExample.cs:line 31
295
+ --- End of stack trace from previous location where exception was thrown ---
296
+ at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
297
+ at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
298
+ at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
299
+ at ExampleApp2.AsyncExceptionExample.<SecondLevelMethod>d__1.MoveNext() in c:/ExampleApp/ExampleApp/AsyncExceptionExample.cs:line 25
300
+ --- End of stack trace from previous location where exception was thrown ---
301
+ at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
302
+ at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
303
+ at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
304
+ at ExampleApp2.AsyncExceptionExample.<TopLevelMethod>d__0.MoveNext() in c:/ExampleApp/ExampleApp/AsyncExceptionExample.cs:line 14
305
+ END_CSHARP_ASYNC
306
+
307
+ RUBY_EXC = <<END_RUBY.freeze
307
308
  NoMethodError (undefined method `resursivewordload' for #<BooksController:0x007f8dd9a0c738>):
308
309
  app/controllers/books_controller.rb:69:in `recursivewordload'
309
310
  app/controllers/books_controller.rb:75:in `loadword'
@@ -315,11 +316,11 @@ END
315
316
  app/controllers/books_controller.rb:99:in `requestload'
316
317
  app/controllers/books_controller.rb:118:in `generror'
317
318
  config/error_reporting_logger.rb:62:in `tagged'
318
- END
319
+ END_RUBY
319
320
 
320
321
  # The whitespace on the second line is significant.
321
- # rubocop:disable TrailingWhitespace
322
- RAILS_EXC = <<END.freeze
322
+ # rubocop:disable Layout/TrailingWhitespace
323
+ RAILS_EXC = <<END_RAILS.freeze
323
324
  ActionController::RoutingError (No route matches [GET] "/settings"):
324
325
 
325
326
  actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call'
@@ -343,230 +344,231 @@ END
343
344
  puma (3.10.0) lib/puma/server.rb:437:in `process_client'
344
345
  puma (3.10.0) lib/puma/server.rb:301:in `block in run'
345
346
  puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread'
346
- END
347
-
348
- DART_ERR = <<END.freeze
349
- Unhandled exception:
350
- Instance of 'MyError'
351
- #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:15:20)
352
- #1 printError (file:///path/to/code/dartFile.dart:37:13)
353
- #2 main (file:///path/to/code/dartFile.dart:15:3)
354
- #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
355
- #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
356
- END
357
-
358
- DART_EXC = <<END.freeze
359
- Unhandled exception:
360
- Exception: exception message
361
- #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:17:20)
362
- #1 printError (file:///path/to/code/dartFile.dart:37:13)
363
- #2 main (file:///path/to/code/dartFile.dart:17:3)
364
- #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
365
- #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
366
- END
367
-
368
- DART_ASYNC_ERR = <<END.freeze
369
- Unhandled exception:
370
- Bad state: oops
371
- #0 handleFailure (file:///test/example/http/handling_an_httprequest_error.dart:16:3)
372
- #1 main (file:///test/example/http/handling_an_httprequest_error.dart:24:5)
373
- <asynchronous suspension>
374
- #2 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
375
- #3 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
376
- END
377
-
378
- DART_DIVIDE_BY_ZERO_ERR = <<END.freeze
379
- Unhandled exception:
380
- IntegerDivisionByZeroException
381
- #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:27:20)
382
- #1 printError (file:///path/to/code/dartFile.dart:42:13)
383
- #2 main (file:///path/to/code/dartFile.dart:27:3)
384
- #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
385
- #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
386
- END
387
-
388
- DART_ARGUMENT_ERR = <<END.freeze
389
- Unhandled exception:
390
- Invalid argument(s): invalid argument
391
- #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:23:20)
392
- #1 printError (file:///path/to/code/dartFile.dart:42:13)
393
- #2 main (file:///path/to/code/dartFile.dart:23:3)
394
- #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
395
- #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
396
- END
397
-
398
- DART_RANGE_ERR = <<END.freeze
399
- Unhandled exception:
400
- RangeError (index): Invalid value: Valid value range is empty: 1
401
- #0 List.[] (dart:core-patch/growable_array.dart:151)
402
- #1 main.<anonymous closure> (file:///path/to/code/dartFile.dart:31:23)
403
- #2 printError (file:///path/to/code/dartFile.dart:42:13)
404
- #3 main (file:///path/to/code/dartFile.dart:29:3)
405
- #4 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
406
- #5 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
407
- END
408
-
409
- DART_ASSERTION_ERR = <<END.freeze
410
- Unhandled exception:
411
- Assertion failed
412
- #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:9:20)
413
- #1 printError (file:///path/to/code/dartFile.dart:36:13)
414
- #2 main (file:///path/to/code/dartFile.dart:9:3)
415
- #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
416
- #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
417
- END
418
-
419
- DART_ABSTRACT_CLASS_ERR = <<END.freeze
420
- Unhandled exception:
421
- Cannot instantiate abstract class LNClassName: _url 'null' line null
422
- #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:12:20)
423
- #1 printError (file:///path/to/code/dartFile.dart:36:13)
424
- #2 main (file:///path/to/code/dartFile.dart:12:3)
425
- #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
426
- #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
427
- END
428
-
429
- DART_READ_STATIC_ERR = <<END.freeze
430
- Unhandled exception:
431
- Reading static variable 'variable' during its initialization
432
- #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:28:20)
433
- #1 printError (file:///path/to/code/dartFile.dart:43:13)
434
- #2 main (file:///path/to/code/dartFile.dart:28:3)
435
- #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
436
- #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
437
- END
438
-
439
- DART_UNIMPLEMENTED_ERROR = <<END.freeze
440
- Unhandled exception:
441
- UnimplementedError: unimplemented
442
- #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:38:20)
443
- #1 printError (file:///path/to/code/dartFile.dart:61:13)
444
- #2 main (file:///path/to/code/dartFile.dart:38:3)
445
- #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
446
- #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
447
- END
448
-
449
- DART_UNSUPPORTED_ERR = <<END.freeze
450
- Unhandled exception:
451
- Unsupported operation: unsupported
452
- #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:36:20)
453
- #1 printError (file:///path/to/code/dartFile.dart:61:13)
454
- #2 main (file:///path/to/code/dartFile.dart:36:3)
455
- #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
456
- #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
457
- END
458
-
459
- DART_CONCURRENT_MODIFICATION_ERR = <<END.freeze
460
- Unhandled exception:
461
- Concurrent modification during iteration.
462
- #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:35:20)
463
- #1 printError (file:///path/to/code/dartFile.dart:61:13)
464
- #2 main (file:///path/to/code/dartFile.dart:35:3)
465
- #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
466
- #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
467
- END
468
-
469
- DART_OOM_ERR = <<END.freeze
470
- Unhandled exception:
471
- Out of Memory
472
- #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:34:20)
473
- #1 printError (file:///path/to/code/dartFile.dart:61:13)
474
- #2 main (file:///path/to/code/dartFile.dart:34:3)
475
- #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
476
- #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
477
- END
478
-
479
- DART_STACK_OVERFLOW_ERR = <<END.freeze
480
- Unhandled exception:
481
- Stack Overflow
482
- #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:33:20)
483
- #1 printError (file:///path/to/code/dartFile.dart:61:13)
484
- #2 main (file:///path/to/code/dartFile.dart:33:3)
485
- #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
486
- #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
487
- END
488
-
489
- DART_FALLTHROUGH_ERR = <<END.freeze
490
- Unhandled exception:
491
- 'null': Switch case fall-through at line null.
492
- #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:39:20)
493
- #1 printError (file:///path/to/code/dartFile.dart:51:13)
494
- #2 main (file:///path/to/code/dartFile.dart:39:3)
495
- #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
496
- #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
497
- END
498
-
499
- DART_TYPE_ERR = <<END.freeze
500
- Unhandled exception:
501
- 'file:///path/to/code/dartFile.dart': malformed type: line 7 pos 24: cannot resolve class 'NoType' from '::'
502
- printError( () { new NoType(); } );
503
- ^
504
-
505
-
506
- #0 _TypeError._throwNew (dart:core-patch/errors_patch.dart:82)
507
- #1 main.<anonymous closure> (file:///path/to/code/dartFile.dart:7:24)
508
- #2 printError (file:///path/to/code/dartFile.dart:36:13)
509
- #3 main (file:///path/to/code/dartFile.dart:7:3)
510
- #4 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
511
- #5 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
512
- END
513
-
514
- DART_FORMAT_ERR = <<END.freeze
515
- Unhandled exception:
516
- FormatException: format exception
517
- #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:25:20)
518
- #1 printError (file:///path/to/code/dartFile.dart:42:13)
519
- #2 main (file:///path/to/code/dartFile.dart:25:3)
520
- #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
521
- #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
522
- END
523
-
524
- DART_FORMAT_WITH_CODE_ERR = <<END.freeze
525
- Unhandled exception:
526
- FormatException: Invalid base64 data (at line 3, character 8)
527
- this is not valid
528
- ^
529
-
530
- #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:24:20)
531
- #1 printError (file:///path/to/code/dartFile.dart:42:13)
532
- #2 main (file:///path/to/code/dartFile.dart:24:3)
533
- #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
534
- #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
535
- END
536
-
537
- DART_NO_METHOD_ERR = <<END.freeze
538
- Unhandled exception:
539
- NoSuchMethodError: No constructor 'TypeError' with matching arguments declared in class 'TypeError'.
540
- Receiver: Type: class 'TypeError'
541
- Tried calling: new TypeError("Invalid base64 data", "invalid", 36)
542
- Found: new TypeError()
543
- #0 NoSuchMethodError._throwNew (dart:core-patch/errors_patch.dart:196)
544
- #1 main.<anonymous closure> (file:///path/to/code/dartFile.dart:8:39)
545
- #2 printError (file:///path/to/code/dartFile.dart:36:13)
546
- #3 main (file:///path/to/code/dartFile.dart:8:3)
547
- #4 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
548
- #5 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
549
- END
550
-
551
- DART_NO_METHOD_GLOBAL_ERR = <<END.freeze
552
- Unhandled exception:
553
- NoSuchMethodError: No top-level method 'noMethod' declared.
554
- Receiver: top-level
555
- Tried calling: noMethod()
556
- #0 NoSuchMethodError._throwNew (dart:core-patch/errors_patch.dart:196)
557
- #1 main.<anonymous closure> (file:///path/to/code/dartFile.dart:10:20)
558
- #2 printError (file:///path/to/code/dartFile.dart:36:13)
559
- #3 main (file:///path/to/code/dartFile.dart:10:3)
560
- #4 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
561
- #5 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
562
- END
563
-
564
- ARBITRARY_TEXT = <<END.freeze
565
- This arbitrary text.
566
- It sounds tympanic: a word which means like a drum.
567
-
568
- I am glad it contains no exception.
569
- END
347
+ END_RAILS
348
+ # rubocop:enable Layout/TrailingWhitespace
349
+
350
+ DART_ERR = <<~END_DART.freeze
351
+ Unhandled exception:
352
+ Instance of 'MyError'
353
+ #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:15:20)
354
+ #1 printError (file:///path/to/code/dartFile.dart:37:13)
355
+ #2 main (file:///path/to/code/dartFile.dart:15:3)
356
+ #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
357
+ #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
358
+ END_DART
359
+
360
+ DART_EXC = <<~END_DART_EXC.freeze
361
+ Unhandled exception:
362
+ Exception: exception message
363
+ #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:17:20)
364
+ #1 printError (file:///path/to/code/dartFile.dart:37:13)
365
+ #2 main (file:///path/to/code/dartFile.dart:17:3)
366
+ #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
367
+ #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
368
+ END_DART_EXC
369
+
370
+ DART_ASYNC_ERR = <<~END_DART_ASYNC.freeze
371
+ Unhandled exception:
372
+ Bad state: oops
373
+ #0 handleFailure (file:///test/example/http/handling_an_httprequest_error.dart:16:3)
374
+ #1 main (file:///test/example/http/handling_an_httprequest_error.dart:24:5)
375
+ <asynchronous suspension>
376
+ #2 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
377
+ #3 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
378
+ END_DART_ASYNC
379
+
380
+ DART_DIVIDE_BY_ZERO_ERR = <<~END_DART_ZERO.freeze
381
+ Unhandled exception:
382
+ IntegerDivisionByZeroException
383
+ #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:27:20)
384
+ #1 printError (file:///path/to/code/dartFile.dart:42:13)
385
+ #2 main (file:///path/to/code/dartFile.dart:27:3)
386
+ #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
387
+ #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
388
+ END_DART_ZERO
389
+
390
+ DART_ARGUMENT_ERR = <<~END_DART_ARG.freeze
391
+ Unhandled exception:
392
+ Invalid argument(s): invalid argument
393
+ #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:23:20)
394
+ #1 printError (file:///path/to/code/dartFile.dart:42:13)
395
+ #2 main (file:///path/to/code/dartFile.dart:23:3)
396
+ #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
397
+ #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
398
+ END_DART_ARG
399
+
400
+ DART_RANGE_ERR = <<~END_DART_RANGE.freeze
401
+ Unhandled exception:
402
+ RangeError (index): Invalid value: Valid value range is empty: 1
403
+ #0 List.[] (dart:core-patch/growable_array.dart:151)
404
+ #1 main.<anonymous closure> (file:///path/to/code/dartFile.dart:31:23)
405
+ #2 printError (file:///path/to/code/dartFile.dart:42:13)
406
+ #3 main (file:///path/to/code/dartFile.dart:29:3)
407
+ #4 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
408
+ #5 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
409
+ END_DART_RANGE
410
+
411
+ DART_ASSERTION_ERR = <<~END_DART_ASSERT.freeze
412
+ Unhandled exception:
413
+ Assertion failed
414
+ #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:9:20)
415
+ #1 printError (file:///path/to/code/dartFile.dart:36:13)
416
+ #2 main (file:///path/to/code/dartFile.dart:9:3)
417
+ #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
418
+ #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
419
+ END_DART_ASSERT
420
+
421
+ DART_ABSTRACT_CLASS_ERR = <<~END_DART_ABC.freeze
422
+ Unhandled exception:
423
+ Cannot instantiate abstract class LNClassName: _url 'null' line null
424
+ #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:12:20)
425
+ #1 printError (file:///path/to/code/dartFile.dart:36:13)
426
+ #2 main (file:///path/to/code/dartFile.dart:12:3)
427
+ #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
428
+ #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
429
+ END_DART_ABC
430
+
431
+ DART_READ_STATIC_ERR = <<~END_DART_STATIC.freeze
432
+ Unhandled exception:
433
+ Reading static variable 'variable' during its initialization
434
+ #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:28:20)
435
+ #1 printError (file:///path/to/code/dartFile.dart:43:13)
436
+ #2 main (file:///path/to/code/dartFile.dart:28:3)
437
+ #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
438
+ #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
439
+ END_DART_STATIC
440
+
441
+ DART_UNIMPLEMENTED_ERROR = <<~END_DART_UNIMPL.freeze
442
+ Unhandled exception:
443
+ UnimplementedError: unimplemented
444
+ #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:38:20)
445
+ #1 printError (file:///path/to/code/dartFile.dart:61:13)
446
+ #2 main (file:///path/to/code/dartFile.dart:38:3)
447
+ #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
448
+ #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
449
+ END_DART_UNIMPL
450
+
451
+ DART_UNSUPPORTED_ERR = <<~END_DART_UNSUPPORTED.freeze
452
+ Unhandled exception:
453
+ Unsupported operation: unsupported
454
+ #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:36:20)
455
+ #1 printError (file:///path/to/code/dartFile.dart:61:13)
456
+ #2 main (file:///path/to/code/dartFile.dart:36:3)
457
+ #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
458
+ #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
459
+ END_DART_UNSUPPORTED
460
+
461
+ DART_CONCURRENT_MODIFICATION_ERR = <<~END_DART_CONCURRENT.freeze
462
+ Unhandled exception:
463
+ Concurrent modification during iteration.
464
+ #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:35:20)
465
+ #1 printError (file:///path/to/code/dartFile.dart:61:13)
466
+ #2 main (file:///path/to/code/dartFile.dart:35:3)
467
+ #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
468
+ #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
469
+ END_DART_CONCURRENT
470
+
471
+ DART_OOM_ERR = <<~END_DART_OOM.freeze
472
+ Unhandled exception:
473
+ Out of Memory
474
+ #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:34:20)
475
+ #1 printError (file:///path/to/code/dartFile.dart:61:13)
476
+ #2 main (file:///path/to/code/dartFile.dart:34:3)
477
+ #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
478
+ #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
479
+ END_DART_OOM
480
+
481
+ DART_STACK_OVERFLOW_ERR = <<~END_DART_STACK.freeze
482
+ Unhandled exception:
483
+ Stack Overflow
484
+ #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:33:20)
485
+ #1 printError (file:///path/to/code/dartFile.dart:61:13)
486
+ #2 main (file:///path/to/code/dartFile.dart:33:3)
487
+ #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
488
+ #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
489
+ END_DART_STACK
490
+
491
+ DART_FALLTHROUGH_ERR = <<~END_DART_FALLTHROUGH.freeze
492
+ Unhandled exception:
493
+ 'null': Switch case fall-through at line null.
494
+ #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:39:20)
495
+ #1 printError (file:///path/to/code/dartFile.dart:51:13)
496
+ #2 main (file:///path/to/code/dartFile.dart:39:3)
497
+ #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
498
+ #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
499
+ END_DART_FALLTHROUGH
500
+
501
+ DART_TYPE_ERR = <<~END_DART_TYPE.freeze
502
+ Unhandled exception:
503
+ 'file:///path/to/code/dartFile.dart': malformed type: line 7 pos 24: cannot resolve class 'NoType' from '::'
504
+ printError( () { new NoType(); } );
505
+ ^
506
+
507
+
508
+ #0 _TypeError._throwNew (dart:core-patch/errors_patch.dart:82)
509
+ #1 main.<anonymous closure> (file:///path/to/code/dartFile.dart:7:24)
510
+ #2 printError (file:///path/to/code/dartFile.dart:36:13)
511
+ #3 main (file:///path/to/code/dartFile.dart:7:3)
512
+ #4 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
513
+ #5 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
514
+ END_DART_TYPE
515
+
516
+ DART_FORMAT_ERR = <<~END_DART_FORMAT.freeze
517
+ Unhandled exception:
518
+ FormatException: format exception
519
+ #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:25:20)
520
+ #1 printError (file:///path/to/code/dartFile.dart:42:13)
521
+ #2 main (file:///path/to/code/dartFile.dart:25:3)
522
+ #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
523
+ #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
524
+ END_DART_FORMAT
525
+
526
+ DART_FORMAT_WITH_CODE_ERR = <<~END_DART_FORMAT_CODE.freeze
527
+ Unhandled exception:
528
+ FormatException: Invalid base64 data (at line 3, character 8)
529
+ this is not valid
530
+ ^
531
+
532
+ #0 main.<anonymous closure> (file:///path/to/code/dartFile.dart:24:20)
533
+ #1 printError (file:///path/to/code/dartFile.dart:42:13)
534
+ #2 main (file:///path/to/code/dartFile.dart:24:3)
535
+ #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
536
+ #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
537
+ END_DART_FORMAT_CODE
538
+
539
+ DART_NO_METHOD_ERR = <<~END_DART_NO_METHOD.freeze
540
+ Unhandled exception:
541
+ NoSuchMethodError: No constructor 'TypeError' with matching arguments declared in class 'TypeError'.
542
+ Receiver: Type: class 'TypeError'
543
+ Tried calling: new TypeError("Invalid base64 data", "invalid", 36)
544
+ Found: new TypeError()
545
+ #0 NoSuchMethodError._throwNew (dart:core-patch/errors_patch.dart:196)
546
+ #1 main.<anonymous closure> (file:///path/to/code/dartFile.dart:8:39)
547
+ #2 printError (file:///path/to/code/dartFile.dart:36:13)
548
+ #3 main (file:///path/to/code/dartFile.dart:8:3)
549
+ #4 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
550
+ #5 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
551
+ END_DART_NO_METHOD
552
+
553
+ DART_NO_METHOD_GLOBAL_ERR = <<~END_DART_NO_GLOBAL.freeze
554
+ Unhandled exception:
555
+ NoSuchMethodError: No top-level method 'noMethod' declared.
556
+ Receiver: top-level
557
+ Tried calling: noMethod()
558
+ #0 NoSuchMethodError._throwNew (dart:core-patch/errors_patch.dart:196)
559
+ #1 main.<anonymous closure> (file:///path/to/code/dartFile.dart:10:20)
560
+ #2 printError (file:///path/to/code/dartFile.dart:36:13)
561
+ #3 main (file:///path/to/code/dartFile.dart:10:3)
562
+ #4 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
563
+ #5 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
564
+ END_DART_NO_GLOBAL
565
+
566
+ ARBITRARY_TEXT = <<~END_ARBITRARY.freeze
567
+ This arbitrary text.
568
+ It sounds tympanic: a word which means like a drum.
569
+
570
+ I am glad it contains no exception.
571
+ END_ARBITRARY
570
572
 
571
573
  def check_multiline(detector, expected_first, expected_last, multiline)
572
574
  lines = multiline.lines