Commit 2cce7c3d authored by mchauhan's avatar mchauhan

Added ITM Exception

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@204577 ce508802-f39f-4f6c-b175-0d175dae99d5
parent cf8daafe
......@@ -54,6 +54,7 @@ import java.net.URLEncoder;
import ibase.webitm.ejb.ITMUploadFileEJB;
import ibase.webitm.ejb.sys.UtilMethods;
import ibase.webitm.utility.ITMException;
import java.net.*;
import java.io.*;
......@@ -105,7 +106,7 @@ public class AutoFileUploadSh implements Schedule
return retString;
}
private void processXLS(File file)
private void processXLS(File file) throws ITMException
{
String retString = "";
// TODO Auto-generated method stub
......@@ -155,17 +156,20 @@ public class AutoFileUploadSh implements Schedule
moveFile(unloadedFileLocation, tempFile);
}
}
} catch (IOException ioE)
}
catch (IOException ioE)
{
ioE.printStackTrace();
} catch (Exception eX)
}
catch (Exception eX)
{
eX.printStackTrace();
throw new ITMException(eX); //Added By Mukesh Chauhan on 02/08/19
}
}
}
private String insertFileData(File file, String fileObjName, String filePkValue)
private String insertFileData(File file, String fileObjName, String filePkValue) throws ITMException
{
String retString = "";
String menuObjName = fileObjName.trim();
......@@ -188,9 +192,11 @@ public class AutoFileUploadSh implements Schedule
ITMUploadFileEJB itmUpEJB = new ITMUploadFileEJB();
retString = itmUpEJB.insertFileData(fileInfoArr, userInfo, DUMP_DIR, CommonConstants.APPLICATION_CONTEXT, menuObjName, is_ExcelDriver);
} catch (Exception e)
}
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 02/08/19
}
return retString;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment