Replaced the "Restarts" class with individual restart classes.
[jsvc.git] / src / dolda / jsvc / util / ClientError.java
index e4713af..a84cf2e 100644 (file)
@@ -2,19 +2,12 @@ package dolda.jsvc.util;
 
 import dolda.jsvc.*;
 
-public class ClientError extends RequestRestart {
-    private final String title;
-    
+public class ClientError extends StdResponse {
     public ClientError(String title, String msg) {
-       super(msg);
-       this.title = title;
+       super(400, title, msg);
     }
     
     public ClientError(String msg) {
        this("Invalid request", msg);
     }
-    
-    public void respond(Request req) {
-       throw(Restarts.stdresponse(400, title, getMessage()));
-    }
 }