throwing experiment not found exception instead of system exception

Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/819c5e28
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/819c5e28
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/819c5e28

Branch: refs/heads/master
Commit: 819c5e286eda098b7c47bd30391fbd477665ba31
Parents: fa4c187
Author: Chathuri Wimalasena <[email protected]>
Authored: Wed Jan 27 15:26:00 2016 -0500
Committer: Chathuri Wimalasena <[email protected]>
Committed: Wed Jan 27 15:26:00 2016 -0500

----------------------------------------------------------------------
 .../apache/airavata/api/server/handler/AiravataServerHandler.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/819c5e28/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
----------------------------------------------------------------------
diff --git 
a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
 
b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
index 0212163..c8de2b7 100644
--- 
a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
+++ 
b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
@@ -1425,7 +1425,7 @@ public class AiravataServerHandler implements 
Airavata.Iface {
                 throw new ExperimentNotFoundException("Requested experiment id 
" + airavataExperimentId + " does not exist in the system..");
             }
             return (ExperimentModel) 
experimentCatalog.get(ExperimentCatalogModelType.EXPERIMENT, 
airavataExperimentId);
-        } catch (Exception e) {
+        } catch (RegistryException e) {
             logger.error("Error while retrieving the experiment", e);
             AiravataSystemException exception = new AiravataSystemException();
             exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);

Reply via email to