1
2
3
4 package org.melati.app.test;
5
6 import org.melati.Melati;
7 import org.melati.app.PoemApp;
8
9
10
11
12
13 public class ThrowingPoemApp extends PoemApp {
14
15
16
17
18 public ThrowingPoemApp() {
19 super();
20
21 }
22
23
24
25
26
27 protected void prePoemSession(Melati melati) throws Exception {
28 throw new RuntimeException("Bang!");
29
30 }
31
32
33
34
35
36
37 public static void main(String[] args) throws Exception {
38 ThrowingPoemApp me = new ThrowingPoemApp();
39 me.run(args);
40 }
41
42
43 }