You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ra...@apache.org on 2012/09/10 16:08:53 UTC

svn commit: r1382859 - /incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/utils/OutputUtils.java

Author: raminder
Date: Mon Sep 10 14:08:53 2012
New Revision: 1382859

URL: http://svn.apache.org/viewvc?rev=1382859&view=rev
Log:
AIRAVATA-548. Changed exception to give proper message

Modified:
    incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/utils/OutputUtils.java

Modified: incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/utils/OutputUtils.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/utils/OutputUtils.java?rev=1382859&r1=1382858&r2=1382859&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/utils/OutputUtils.java (original)
+++ incubator/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/core/gfac/utils/OutputUtils.java Mon Sep 10 14:08:53 2012
@@ -88,7 +88,7 @@ public class OutputUtils {
             throw new Exception("Data for the output parameter '"+outParam+"' was not found");
         }
     }
-    public static String[] parseStdoutArray(String stdout, String outParam)throws NullPointerException {
+    public static String[] parseStdoutArray(String stdout, String outParam) throws Exception {
         String regex = Pattern.quote(outParam) + regexPattern;
         StringBuffer match = new StringBuffer();
         Pattern pattern = Pattern.compile(regex);
@@ -99,7 +99,7 @@ public class OutputUtils {
         if (match != null) {
             return match.toString().split(",");
         } else {
-            throw new NullPointerException();
+            throw new Exception("Data for the output parameter '"+outParam+"' was not found");
         }
     }
 }