Changeset 20719
- Timestamp:
- 24/02/10 10:06:39 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/intermine/api/main/src/org/intermine/api/template/TemplatePrecomputeHelper.java
r20511 r20719 16 16 import java.util.List; 17 17 18 import org.apache.log4j.Logger; 18 19 import org.intermine.api.query.MainHelper; 19 20 import org.intermine.objectstore.ObjectStoreException; … … 36 37 { 37 38 39 private static final Logger LOG = Logger.getLogger(TemplatePrecomputeHelper.class); 40 38 41 /** 39 42 * Get an ObjectStore query to precompute this template - remove editable constraints … … 67 70 TemplateQuery templateClone = template.cloneWithoutEditableConstraints(); 68 71 72 /* don't throw exception here. this method is called on all pages that display templates 73 * if we throw an exception here, the user will never be able to edit the template */ 69 74 if (template.getBagNames().size() != 0) { 70 throw new RuntimeException("Precomputed query can't be created " 71 + "for a template with a list."); 75 String msg = "Precomputed query can't be created for a template with a list."; 76 LOG.error(msg); 77 return null; 72 78 } 73 79
Note: See TracChangeset
for help on using the changeset viewer.
