           (a/can-modify? request)
           (db/delete request))
       (catch ExceptionInfo ei
-        (.getData ei)))))
+        (ex-data ei)))))
 
 (defn collection-wrapper-fn
   [resource-name collection-acl collection-uri collection-key]

          (crud/set-operations request)
          (u/json-response))
      (catch ExceptionInfo ei
        (.getData ei)))))

(defn edit-fn
  [resource-name]

            (db/edit request)
            (u/json-response)))
      (catch ExceptionInfo ei
        (ex-data ei)))))

(defn delete-fn
  [resource-name]
