first cut of merge of STABLE-pre1_0 into HEAD. I won't even guarantee that it
[mir.git] / source / mir / servlet / ServletModule.java
index 6e4998b..eab5dc5 100755 (executable)
@@ -126,15 +126,16 @@ public abstract class ServletModule {
    * @param res Http-Response, die vom Dispatcher durchgereicht wird
    */
   public void insert(HttpServletRequest req, HttpServletResponse res)
-    throws ServletModuleException {
+    throws ServletModuleException, ServletModuleUserException {
     try {
       HashMap withValues = getIntersectingValues(req, mainModule.getStorageObject());
       String id = mainModule.add(withValues);
       // theLog.printDebugInfo("--trying to deliver..."+id);
       list(req,res);
       //deliver(req, res, mainModule.getById(id), templateObjektString);
+    } catch (Exception e) {
+      throw new ServletModuleException(e.toString());
     }
-    catch (Exception e) { throw new ServletModuleException(e.toString());}
   }
 
 /**