package edu.utah.nanofab.coralapiserver.resources.operations;

import edu.utah.nanofab.coralapiserver.core.EnableRequest;
import java.util.HashMap;

public class EnableOperationPost extends ResourceOperation  {
  @Override
  public void performOperationImpl() throws Exception {
      throw new Exception("TEST EXCEPHTION HANDLING");
//      EnableRequest enableRequest = (EnableRequest)(this.postedObject.get());
//      System.out.println("Enabling beginning for " + enableRequest.getItem());
//  
//      String id = this.api.enable(user.getUsername(), enableRequest.getMember(), 
//          enableRequest.getProject(), enableRequest.getItem());
//      HashMap<String, String> response = new HashMap<String, String>();
//      response.put("id", id);
//      this.setReturnValue(response);
  }

  @Override
  public String errorMessage() {
    return "Error while trying to enable" ;
  }

}
@@ -276,65 +276,8 @@
 n %7B%0A
-      throw new Exception(%22TEST EXCEPHTION HANDLING%22);%0A//
     
@@ -346,26 +346,24 @@
 ect.get());%0A
-//
       System
@@ -433,15 +433,11 @@
 ));%0A
-//
   %0A
-//
     
@@ -514,18 +514,16 @@
 ber(), %0A
-//
         
@@ -578,18 +578,16 @@
 tem());%0A
-//
       Ha
@@ -650,18 +650,16 @@
 ing%3E();%0A
-//
       re
@@ -684,10 +684,8 @@
 d);%0A
-//
     

remove exception throwing