diff options
author | ajay priyadarshi <ajay.priyadarshi@ril.com> | 2018-02-19 11:05:10 +0530 |
---|---|---|
committer | ajay priyadarshi <ajay.priyadarshi@ril.com> | 2018-02-19 11:05:10 +0530 |
commit | 6ee67932db9e989a708adaa918b08657ed98fdce (patch) | |
tree | 6a8a7fd21e0597ba06d6eed50f821c2a18bbe4de | |
parent | 29cfc7a4ad50dd8b24bd7ce9a051e456cd0279a2 (diff) |
Exception handling
emsdriver/commons/ftp/FTPSrv.java
file name: FTPSrv.java
Change-Id: I976357082528cf52c27b55111d46f56074db8a07
Issue-ID: VFC-767
Signed-off-by: ajay priyadarshi <ajay.priyadarshi@ril.com>
-rw-r--r-- | ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/commons/ftp/FTPSrv.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/commons/ftp/FTPSrv.java b/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/commons/ftp/FTPSrv.java index 1e82b78..06d3eca 100644 --- a/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/commons/ftp/FTPSrv.java +++ b/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/commons/ftp/FTPSrv.java @@ -63,7 +63,7 @@ public class FTPSrv implements FTPInterface { } if (!ftpClient.login(user, pwd)) { - throw new Exception("login[" + host + "],port[" + port + "] fail, please check user and password"); + throw new IOException("login[" + host + "],port[" + port + "] fail, please check user and password"); } if (isPassiveMode) { ftpClient.enterLocalPassiveMode(); @@ -76,7 +76,8 @@ public class FTPSrv implements FTPInterface { try { this.ftpClient.setSoTimeout(timeout); } catch (Exception e) { - e.printStackTrace(); + //e.printStackTrace(); + log.error(" StackTrace :", e); } } |