You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sh...@apache.org on 2015/08/15 19:59:28 UTC
[3/3] airavata git commit: HPCRemoteCluster throw exceptions with
message and original exception
HPCRemoteCluster throw exceptions with message and original exception
Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/4f6e8c5e
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/4f6e8c5e
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/4f6e8c5e
Branch: refs/heads/master
Commit: 4f6e8c5e61915e92384059919d24abb9e837a6ff
Parents: 51332d3
Author: Shameera Rathanyaka <sh...@gmail.com>
Authored: Sat Aug 15 13:58:57 2015 -0400
Committer: Shameera Rathanyaka <sh...@gmail.com>
Committed: Sat Aug 15 13:58:57 2015 -0400
----------------------------------------------------------------------
.../java/org/apache/airavata/gfac/impl/HPCRemoteCluster.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata/blob/4f6e8c5e/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/HPCRemoteCluster.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/HPCRemoteCluster.java b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/HPCRemoteCluster.java
index fa73898..a3fb80e 100644
--- a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/HPCRemoteCluster.java
+++ b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/HPCRemoteCluster.java
@@ -107,7 +107,7 @@ public class HPCRemoteCluster extends AbstractRemoteCluster{
try {
session.connect();
} catch (JSchException e1) {
- throw new SSHApiException("JSch Session connection failed");
+ throw new SSHApiException("JSch Session connection failed", e1);
}
}
if (retry == 0) {
@@ -138,7 +138,7 @@ public class HPCRemoteCluster extends AbstractRemoteCluster{
try {
session.connect();
} catch (JSchException e1) {
- throw new SSHApiException("JSch Session connection failed");
+ throw new SSHApiException("JSch Session connection failed", e1);
}
}
if (retry == 0) {
@@ -174,7 +174,7 @@ public class HPCRemoteCluster extends AbstractRemoteCluster{
log.info("Creating directory: " + serverInfo.getHost() + ":" + directoryPath);
SSHUtils.makeDirectory(directoryPath, session);
} catch (JSchException | IOException e) {
- throw new SSHApiException("Failed to create directory " + serverInfo.getHost() + ":" + directoryPath);
+ throw new SSHApiException("Failed to create directory " + serverInfo.getHost() + ":" + directoryPath, e);
}
}
@@ -223,7 +223,7 @@ public class HPCRemoteCluster extends AbstractRemoteCluster{
log.info("Creating directory: " + serverInfo.getHost() + ":" + directoryPath);
return SSHUtils.listDirectory(directoryPath, session);
} catch (JSchException | IOException e) {
- throw new SSHApiException("Failed to list directory " + serverInfo.getHost() + ":" + directoryPath);
+ throw new SSHApiException("Failed to list directory " + serverInfo.getHost() + ":" + directoryPath, e);
}
}