Skip to content

Commit

Permalink
Better feedback if there is no access
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Sep 7, 2011
1 parent d7e8ad4 commit 3617916
Showing 1 changed file with 5 additions and 0 deletions.
@@ -1,5 +1,6 @@
package net.bioclipse.opentox.ds;

import java.security.GeneralSecurityException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -71,6 +72,10 @@ protected List<? extends ITestResult> doRunTest(ICDKMolecule cdkmol,
try{
OTres = opentox.predictWithModelWithLabel(service, model, cdkmol, monitor);

} catch (GeneralSecurityException e) {
logger.error(" == Opentox model without access: " + model);
String errorMessage = "No access";
return returnError(errorMessage, errorMessage);
}catch(Exception e){
logger.error(" == Opentox model calculation failed for: " + model);
logger.debug(e);
Expand Down

0 comments on commit 3617916

Please sign in to comment.