Added a request-restart-wrapper and some convenient redirections.
[jsvc.git] / src / dolda / jsvc / RequestRestart.java
CommitLineData
c25c3aad
FT
1package dolda.jsvc;
2
3public abstract class RequestRestart extends RuntimeException implements Responder {
4 public RequestRestart() {
5 super("Unhandled restart for code that should be running inside a Rehandler");
6 }
7
8 public RequestRestart(String msg) {
9 super(msg);
10 }
11
12 public RequestRestart(Throwable t) {
13 super("Unhandled restart for code that should be running inside a Rehandler", t);
14 }
15
16 public RequestRestart(String msg, Throwable t) {
17 super(msg, t);
18 }
19
20 public abstract void respond(Request req);
21}