Commit c3075b87 authored by mchauhan's avatar mchauhan

Added ITM Exception

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@204972 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 34d5cc9c
......@@ -374,14 +374,16 @@ public class CancelInvPack extends ActionHandlerEJB implements CancelInvPackLoca
{
System.out.println("The SQLException occurs in invPakc for CANCEL button :"+sqx);
sqx.printStackTrace();
errorString=sqx.getMessage();
/*errorString=sqx.getMessage();*/ // Commented By Mukesh Chauhan on 08/08/19
throw new ITMException(sqx); //Added By Mukesh Chauhan on 08/08/19
}
catch (Exception e)
{
System.out.println("The Exception occure in InvPakc for CANCEL button:"+e);
e.printStackTrace();
errorString=e.getMessage();
/*errorString=e.getMessage();*/ //commented By Mukesh Chauhan on 08/08/19
throw new ITMException(e); //Added By Mukesh Chauhan on 02/08/19
}
finally
{
......@@ -416,7 +418,7 @@ public class CancelInvPack extends ActionHandlerEJB implements CancelInvPackLoca
//End by msalam on 05/07/07 for req-id :: DI78GIN021
//signature changed by msalam
//private String getCurrdateAppFormat()
private java.sql.Timestamp getCurrdateAppFormat()
private java.sql.Timestamp getCurrdateAppFormat() throws ITMException
{
String currAppdate ="";
java.sql.Timestamp currDate = null;
......@@ -433,6 +435,7 @@ public class CancelInvPack extends ActionHandlerEJB implements CancelInvPackLoca
catch(Exception e)
{
System.out.println("Exception in :::calcFrsBal"+e.getMessage());
throw new ITMException(e); //Added By Mukesh Chauhan on 02/08/19
}
return currDate;
//LINE COMMENTED BY MSALAM AS TIMESTAMP IS NEEDED
......
......@@ -134,10 +134,12 @@ public class ChargeBackFormCancel extends ActionHandlerEJB implements ChargeBack
catch (SQLException e)
{
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 02/08/19
}
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 02/08/19
}
finally
{
......
......@@ -205,7 +205,7 @@ ChargeBackFormPostSaveLocal, ChargeBackFormPostSaveRemote
System.out.println("Exception ::" + e);
e.printStackTrace();
error = e.getMessage();
throw new ITMException(e); //Added By Mukesh Chauhan on 02/08/19
} finally
{
......
......@@ -132,10 +132,12 @@ public class ChargeBackLocCancel extends ActionHandlerEJB implements ChargeBackL
catch (SQLException e)
{
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 02/08/19
}
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 02/08/19
}
finally
{
......
......@@ -1551,7 +1551,7 @@ public class ConsumeIssueAct extends ActionHandlerEJB implements ConsumeIssueAct
System.out.println("retStr :"+retStr);
return retStr;
}//end acctDertTType()
private String calcExpiry(String tranDate, int months)
private String calcExpiry(String tranDate, int months) throws ITMException
{
java.util.Date expDate = new java.util.Date();
java.util.Date retDate = new java.util.Date();
......@@ -1583,6 +1583,7 @@ public class ConsumeIssueAct extends ActionHandlerEJB implements ConsumeIssueAct
catch(Exception e)
{
System.out.println("The Exception occurs in calcExpiry :"+e);
throw new ITMException(e); //Added By Mukesh Chauhan on 02/08/19
}
System.out.println("retStrInDate :"+retStrInDate);
return retStrInDate;
......
......@@ -159,7 +159,7 @@ public class CreateVoucherAct extends ActionHandlerEJB implements CreateVoucherA
return retString;
}
//Changes made by Anjali R on [03/08/2018][To replace tag value from dom][Start]
private String replaceErrorMsg (String retErrXml ,String tagName , String replaceWith)
private String replaceErrorMsg (String retErrXml ,String tagName , String replaceWith) throws ITMException
{
E12GenericUtility genericUtility = new E12GenericUtility();
Document dom = null;
......@@ -195,6 +195,7 @@ public class CreateVoucherAct extends ActionHandlerEJB implements CreateVoucherA
catch(Exception e)
{
System.out.println(e.getMessage());
throw new ITMException(e); //Added By Mukesh Chauhan on 02/08/19
}
return changedErrorString;
}
......
......@@ -5891,10 +5891,12 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D
{
System.out.println("The SQLException occurs in DespatchAct :"+sqx);
sqx.printStackTrace();
throw new ITMException(sqx); //Added By Mukesh Chauhan on 09/08/19
}
catch (Exception e)
{
System.out.println("The Exception occurs in DespatchAct :"+e);
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
//21-07-2010 connection close
finally
......@@ -5934,7 +5936,7 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D
return valueXmlString.toString();
}
private String calcExpiry(String tranDate, int months)
private String calcExpiry(String tranDate, int months) throws ITMException
{
java.util.Date expDate = new java.util.Date();
java.util.Date retDate = new java.util.Date();
......@@ -5966,6 +5968,7 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D
catch(Exception e)
{
System.out.println("The Exception occurs in calcExpiry :"+e);
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
System.out.println("retStrInDate :"+retStrInDate);
return retStrInDate;
......@@ -6633,7 +6636,7 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D
return stbf.toString();
}
//Added By Gulzar - 23/01/08
private double[] getNoArt(String siteCode , String custCode , String itemCode , String packCode , double qty , String qtyType , double shipperQty , double integralQty, Connection conn)
private double[] getNoArt(String siteCode , String custCode , String itemCode , String packCode , double qty , String qtyType , double shipperQty , double integralQty, Connection conn) throws ITMException
{
String tempSql = "";
String tempSql1 = "";
......@@ -6918,6 +6921,7 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D
{
System.out.println("Exception in getNoArt :: "+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
finally
{
......@@ -9293,6 +9297,7 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D
{
System.out.println(e);
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
return dom;
......
......@@ -3156,6 +3156,7 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
{
//System.out.println("Excepton occurs in DistIssueActEJB Allocate :: " +e);
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
finally
{
......@@ -3601,7 +3602,7 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
}
return retString;
}
private double pickRate(String priceList, String tranDate, String itemCode, String lotNo, char type)
private double pickRate(String priceList, String tranDate, String itemCode, String lotNo, char type) throws ITMException
{
String siteCode = "", locCode = "", lotSL = "", priceListParent = "";
double rate = 0, retValue = 0;
......@@ -3725,6 +3726,7 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
catch(Exception e)
{
System.out.println("Exception occurs in Case 'L' "+e);
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
finally
{
......@@ -3822,6 +3824,7 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
catch(Exception e)
{
System.out.println("Exception occurs in Case 'L' "+e);
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
finally
{
......@@ -3989,6 +3992,7 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
catch(Exception e)
{
System.out.println("Exception occurs in Case 'L' "+e);
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
finally
{
......@@ -4099,6 +4103,7 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
catch(Exception e)
{
System.out.println("Exception occurs in Case 'L' "+e);
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
finally
{
......@@ -4203,6 +4208,7 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
catch(Exception e)
{
System.out.println("Exception occurs in Case 'L' "+e);
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
finally
{
......@@ -4278,7 +4284,8 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
}
catch(Exception e)
{
System.out.println("The sql Exception occurs :"+e);
System.out.println("The sql Exception occurs :"+e);
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
finally
{
......@@ -4301,7 +4308,7 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
return rate;
}
private char priceListType(String priceList)
private char priceListType(String priceList) throws ITMException
{
char listType = ' ';
System.out.println("priceList :"+priceList);
......@@ -4348,10 +4355,12 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
catch(SQLException sqx)
{
System.out.println("The Sql Exception Occures in priceListType :"+sqx);
throw new ITMException(sqx); //Added By Mukesh Chauhan on 09/08/19
}
catch(Exception e)
{
System.out.println("The Exception Occures in priceListType :"+e);
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
finally
{
......@@ -4379,7 +4388,7 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
System.out.println("listType :"+listType);
return listType;
}
private String calcExpiry(String tranDate, int months)
private String calcExpiry(String tranDate, int months) throws ITMException
{
java.util.Date expDate = new java.util.Date();
java.util.Date retDate = new java.util.Date();
......@@ -4411,12 +4420,13 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
catch(Exception e)
{
System.out.println("The Exception occurs in calcExpiry :"+e);
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
System.out.println("retStrInDate :"+retStrInDate);
return retStrInDate;
}
private double getIntegralQty(String siteCode, String itemCode, String lotNo, String packCode, String checkIntegralQty)
private double getIntegralQty(String siteCode, String itemCode, String lotNo, String packCode, String checkIntegralQty) throws ITMException
{
double integralQty = 0;
String sql = "";
......@@ -4616,6 +4626,7 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
catch(Exception e)
{
System.out.println("the exception occurs in getIntegralQty :"+e);
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}finally
{
try{
......@@ -4634,7 +4645,7 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
return integralQty;
}
private int getNoArt(String siteCode, String custCode, String itemCode, String packCode, double qty, char type, double shipperQty, double integralQty1)
private int getNoArt(String siteCode, String custCode, String itemCode, String packCode, double qty, char type, double shipperQty, double integralQty1) throws ITMException
{
String sql = "";
ResultSet rs = null;
......@@ -4931,6 +4942,7 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
catch(Exception e)
{
System.out.println("Exception occures in getNoArt :"+e);
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
finally {
try{
......
......@@ -88,6 +88,7 @@ public class DistIssueConfirmAct extends ActionHandlerEJB
{
e1.printStackTrace();
System.out.println("The Exception occure in DistIssueConfirmActEJB :"+e1);
throw new ITMException(e1); //Added By Mukesh Chauhan on 09/08/19
}
return errString;
......@@ -856,12 +857,14 @@ public class DistIssueConfirmAct extends ActionHandlerEJB
errString = "ERROR";
e1.printStackTrace();
System.out.println("The Exception occure in DistIssueConfirmActEJB :"+e1);
throw new ITMException(e1); //Added By Mukesh Chauhan on 09/08/19
}
catch (Exception e)
{
errString = "ERROR";
e.printStackTrace();
System.out.println("The Exception occure in DistIssueConfirmActEJB :"+e);
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
finally
{
......@@ -1105,7 +1108,7 @@ public class DistIssueConfirmAct extends ActionHandlerEJB
}
return xmlString;
}
private String getCurrdateAppFormat()
private String getCurrdateAppFormat() throws ITMException
{
String s = "";
//GenericUtility genericUtility = GenericUtility.getInstance();
......@@ -1123,6 +1126,7 @@ public class DistIssueConfirmAct extends ActionHandlerEJB
catch(Exception exception)
{
System.out.println("Exception in [MPSOrder] getCurrdateAppFormat " + exception.getMessage());
throw new ITMException(exception); //Added By Mukesh Chauhan on 09/08/19
}
return s;
}
......
......@@ -189,7 +189,7 @@ public class DistOpenPrc extends ActionHandlerEJB
System.out.println("distorder..." + e1.getMessage());
e1.printStackTrace();
}
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
finally
{
......
......@@ -678,7 +678,7 @@ public class EnquiryAct extends ActionHandlerEJB implements EnquiryActLocal, Enq
return valueXmlString.toString();
}
private ArrayList suppItemList(Document dom)
private ArrayList suppItemList(Document dom) throws ITMException
{
ArrayList retArrList = new ArrayList();
String nodeName = "", nodeValue = "";
......@@ -714,11 +714,12 @@ public class EnquiryAct extends ActionHandlerEJB implements EnquiryActLocal, Enq
catch(Exception e)
{
System.out.println("Exception [suppItemList]: " + e);
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
return retArrList;
}
private ArrayList itemList(Document dom)
private ArrayList itemList(Document dom) throws ITMException
{
ArrayList retArrList = new ArrayList();
String nodeName = "", nodeValue = "";
......@@ -750,6 +751,7 @@ public class EnquiryAct extends ActionHandlerEJB implements EnquiryActLocal, Enq
catch(Exception e)
{
System.out.println("Exception [suppItemList]: " + e);
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
return retArrList;
}
......@@ -770,7 +772,7 @@ public class EnquiryAct extends ActionHandlerEJB implements EnquiryActLocal, Enq
return retCnt;
}
private String supplier(String siteCode, String suppCode, String tranSer)
private String supplier(String siteCode, String suppCode, String tranSer) throws ITMException
{
String errCode = "", mVarValue = "" , blkList = "", sql = "";
long count = 0;
......@@ -845,12 +847,14 @@ public class EnquiryAct extends ActionHandlerEJB implements EnquiryActLocal, Enq
catch (SQLException sqx)
{
System.out.println("SQLException : EnquiryAct : supplier : " +sqx.getMessage());
errCode = sqx.getMessage();
/*errCode = sqx.getMessage();*/ //Commented By Mukesh Chauhan on 09/08/19
throw new ITMException(sqx); //Added By Mukesh Chauhan on 09/08/19
}
catch(Exception e)
{
System.out.println("Exception : EnquiryAct : supplier :(Document dom)" +e.getMessage());
errCode = e.getMessage();
/*errCode = e.getMessage();*/ //Commented By Mukesh Chauhan on 09/08/19
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
finally
{
......
......@@ -1858,7 +1858,7 @@ public class InvPackAct extends ActionHandlerEJB implements InvPackActLocal, Inv
return valueXmlString.toString();
}
private String updateMessage(String resultString,String message)
private String updateMessage(String resultString,String message) throws ITMException
{
StringBuffer stbf = new StringBuffer();
try{
......@@ -1875,6 +1875,7 @@ public class InvPackAct extends ActionHandlerEJB implements InvPackActLocal, Inv
}catch(Exception e){
System.out.println("Exception in updateMessage : "+e);
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
return stbf.toString();
}
......
......@@ -776,6 +776,7 @@ public class POBWizConf extends ActionHandlerEJB implements POBWizConfLocal, POB
catch(Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex); //Added By Mukesh Chauhan on 09/08/19
}
finally
{
......
......@@ -723,6 +723,7 @@ public class PorcpConfirmEJB implements Schedule
catch (Exception localException)
{
System.out.println("@V@ [PorcpConfirmEJB:: getResponse()]Exception Arises ..." + localException);
throw new ITMException(localException); //Added By Mukesh Chauhan on 09/08/19
}
finally
{
......@@ -795,6 +796,7 @@ public class PorcpConfirmEJB implements Schedule
{
System.out.println("@V@ [PorcpConfirmEJB:: schedule()] Following Exception arises while getting sitecode..");
localException1.printStackTrace();
throw new ITMException(localException1); //Added By Mukesh Chauhan on 09/08/19
}
localNodeList3 = paramDocument.getElementsByTagName("OWNER");
......
......@@ -2029,6 +2029,7 @@ public class PorderClosePrc extends ProcessEJB implements PorderClosePrcLocal,
errString = e.getMessage();
throw new ITMException(e);
}
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
} finally {
System.out.println("Closing Connection....");
......
......@@ -44,6 +44,7 @@ public class PorderConfWF implements PorderConfWFRemote, PorderConfWFLocal {
} catch (Exception e) {
System.out.println("Exception Occured in PorderConfWF confirm");
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
System.out.println("returnString>>>> "+retString);
return retString;
......
......@@ -228,6 +228,7 @@ public class SaleOrderOpenAct extends ActionHandlerEJB implements SaleOrderOpenA
System.out.println("SaleOrderOpenAct..."+e1.getMessage());
e1.printStackTrace();
}
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
finally
{
......@@ -281,8 +282,9 @@ public class SaleOrderOpenAct extends ActionHandlerEJB implements SaleOrderOpenA
* The private method to created to
* update each 'sorditem' status for
* respective sale order
* @throws ITMException
* */
private int updateSorditem(String saleOrder,String lineNo, Connection conn)
private int updateSorditem(String saleOrder,String lineNo, Connection conn) throws ITMException
{
// TODO Auto-generated method stub
int updateCnt=0;
......@@ -302,6 +304,7 @@ public class SaleOrderOpenAct extends ActionHandlerEJB implements SaleOrderOpenA
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
return updateCnt;
}
......
......@@ -464,6 +464,7 @@ public class SalesReturnConfirm extends ActionHandlerEJB implements SalesReturnC
System.out.println("Inside catch confirm==>"+e.getMessage());
isError = true;
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
finally
{
......
......@@ -153,6 +153,7 @@ public class SchemeApplAct extends ActionHandlerEJB implements SchemeApplActLoca
//log.write("[Action] final valueXmlString=============>"+valueXmlString+"<====");
}catch( Exception e ){
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
return valueXmlString.toString();
}
......
......@@ -538,7 +538,7 @@ public class SchemeDefWizPostSave extends ValidatorEJB implements SchemeDefWizPo
return mainStr;
}//end of method getError
private String generateTranID(String xtraParams, String tranWindow, Connection conn)
private String generateTranID(String xtraParams, String tranWindow, Connection conn) throws ITMException
{
String sprsTravelTranID = "";
PreparedStatement pStmt = null;
......@@ -583,6 +583,7 @@ public class SchemeDefWizPostSave extends ValidatorEJB implements SchemeDefWizPo
{
System.out.println("Exception In generateTranID......");
exp.printStackTrace();
throw new ITMException(exp); //Added By Mukesh Chauhan on 09/08/19
}
finally
{
......
......@@ -659,6 +659,7 @@ public class SordAttConf extends ActionHandlerEJB implements SordAttConfLocal, S
System.out.println("Exception :: [ConfirmSordAtt][confirmSordAtt]"+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
finally
{
......@@ -675,7 +676,7 @@ public class SordAttConf extends ActionHandlerEJB implements SordAttConfLocal, S
}
//Confirm SaleOrder
private String confirmSalesOrder(String sorderNo,String sordAttNo,Connection conn)
private String confirmSalesOrder(String sorderNo,String sordAttNo,Connection conn) throws ITMException
{
String retString = "Not Confirmed";
Statement stmt = null;
......@@ -971,6 +972,7 @@ public class SordAttConf extends ActionHandlerEJB implements SordAttConfLocal, S
retString = "Not Confirmed";
System.out.println("Exception ::"+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
return retString;
}
......@@ -1113,7 +1115,7 @@ public class SordAttConf extends ActionHandlerEJB implements SordAttConfLocal, S
return flag;
}
//The method check for Detail entry for the corresponding colVal
private boolean checkForDetailEntry(String table,String field,String colVal,Connection conn)
private boolean checkForDetailEntry(String table,String field,String colVal,Connection conn) throws ITMException
{
Statement stmt = null;
ResultSet rs = null;
......@@ -1137,6 +1139,7 @@ public class SordAttConf extends ActionHandlerEJB implements SordAttConfLocal, S
catch(Exception e)
{
System.out.println("Exception :: [ConfirmSordAtt][checkForDetailEntry]"+e);
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
return flag;
}
......@@ -2559,7 +2562,7 @@ public class SordAttConf extends ActionHandlerEJB implements SordAttConfLocal, S
return itemDescr;
}
private String getAttributeColumn(String attributeName,String itemTYpe,Connection conn)
private String getAttributeColumn(String attributeName,String itemTYpe,Connection conn) throws ITMException
{
Statement stmt = null;
ResultSet rs = null;
......@@ -2596,11 +2599,12 @@ public class SordAttConf extends ActionHandlerEJB implements SordAttConfLocal, S
{
System.out.println("Exception in attributeColumn :: "+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
return columnName;
}
private String generateSaleOrder(String tranID,String saleOrder,String xtraParams,Connection conn)
private String generateSaleOrder(String tranID,String saleOrder,String xtraParams,Connection conn) throws ITMException
{
PreparedStatement pstmt = null;
Statement stmt = null;
......@@ -2851,6 +2855,7 @@ public class SordAttConf extends ActionHandlerEJB implements SordAttConfLocal, S
{
System.out.println("Exception in generateSaleOrder :: "+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
finally
{
......
......@@ -921,7 +921,7 @@ public class SorderAct extends ActionHandlerEJB implements SorderActLocal, Sorde
return newDomXml;
}
public String getItemDescr(String itemCode , Connection conn)
public String getItemDescr(String itemCode , Connection conn) throws ITMException
{
String descr = "",sql="";
PreparedStatement pstmt = null;
......@@ -953,6 +953,7 @@ public class SorderAct extends ActionHandlerEJB implements SorderActLocal, Sorde
{
System.out.println(e);
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
finally
{
......@@ -1012,7 +1013,7 @@ public class SorderAct extends ActionHandlerEJB implements SorderActLocal, Sorde
return AttribValue;
}
//Added by sarita on 15JAN2018
public String returnFinalFreeItemDataUsingList(List<String> list,Connection conn,String schemeType,String schemeCode,String schemeDescr,double discount,double freeQty,String itemValues,HashMap<String,String> detai1ValueMap)
public String returnFinalFreeItemDataUsingList(List<String> list,Connection conn,String schemeType,String schemeCode,String schemeDescr,double discount,double freeQty,String itemValues,HashMap<String,String> detai1ValueMap) throws ITMException
{
System.out.println("finalFreeItems :::"+list);
//System.out.println("finalFreeItems :::"+list.size());
......@@ -1093,6 +1094,7 @@ public class SorderAct extends ActionHandlerEJB implements SorderActLocal, Sorde
System.out.println("Exception in returnFinalFreeItemDataUsingList is:::"+e);
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
return valueXmlString.toString();
}
......@@ -1132,7 +1134,7 @@ public class SorderAct extends ActionHandlerEJB implements SorderActLocal, Sorde
return valueXmlString.toString();
}*/
public String getItemCode(List<String> itemCodeListScheme)
public String getItemCode(List<String> itemCodeListScheme) throws ITMException
{
Iterator<String> itr = null;
String itemValues = "";
......@@ -1155,6 +1157,7 @@ public class SorderAct extends ActionHandlerEJB implements SorderActLocal, Sorde
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
return itemValues;
}
......@@ -1179,7 +1182,7 @@ public class SorderAct extends ActionHandlerEJB implements SorderActLocal, Sorde
}
}
private String getDueDate(String sale_order,Connection conn)
private String getDueDate(String sale_order,Connection conn) throws ITMException
{
String dueDate = "";
String sql = "";
......@@ -1201,6 +1204,7 @@ public class SorderAct extends ActionHandlerEJB implements SorderActLocal, Sorde
{
System.out.println("Inside getDueDate() ---- "+e);
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
return dueDate;
}
......@@ -1226,7 +1230,7 @@ public class SorderAct extends ActionHandlerEJB implements SorderActLocal, Sorde
return null;
}
}
public String getStationFrom(String siteCode,Connection conn)
public String getStationFrom(String siteCode,Connection conn) throws ITMException
{
String sql = "",stationFrom="";
PreparedStatement pstmt = null;
......@@ -1254,11 +1258,12 @@ public class SorderAct extends ActionHandlerEJB implements SorderActLocal, Sorde
{
e.printStackTrace();
System.out.println(e);
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
return stationFrom;
}
public String getStationTo(String custCode,Connection conn)
public String getStationTo(String custCode,Connection conn) throws ITMException
{
String sql = "",stationTo="";
PreparedStatement pstmt = null;
......@@ -1288,12 +1293,13 @@ public class SorderAct extends ActionHandlerEJB implements SorderActLocal, Sorde
{
e.printStackTrace();
System.out.println(e);
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
return stationTo;
}
//added by nandkumar gadkari on 12/06/19
public String pointBaseScheme(Document dom, Document dom1, String xtraParams,String s,Connection conn)
public String pointBaseScheme(Document dom, Document dom1, String xtraParams,String s,Connection conn) throws ITMException
{
String sql = "",custCode="";
PreparedStatement pstmt = null,pstmt1 = null,pstmt2 = null, pstmt4=null,pstmt5=null;
......@@ -1621,6 +1627,7 @@ public class SorderAct extends ActionHandlerEJB implements SorderActLocal, Sorde
{
e.printStackTrace();
System.out.println(e);
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
return valueXmlString.toString();
......
......@@ -128,6 +128,7 @@ public class StoreToPrc extends ProcessEJB implements StoreToPrcLocal, StoreToPr
{
System.out.println("Exception :SoHoldRefPrc :process(String xmlString, String xmlString2, String windowName, String xtraParams):" + e.getMessage() + ":");
e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
return retStr;
}//END OF PROCESS (1)
......@@ -254,8 +255,8 @@ public class StoreToPrc extends ProcessEJB implements StoreToPrcLocal, StoreToPr
{
System.out.println("Exception in SoHoldRefPrc..."+e.getMessage());
e.printStackTrace();
errString = e.getMessage();
/*e.printStackTrace();*/ //Commented By Mukesh Chauhan on 09/08/19
throw new ITMException(e); //Added By Mukesh Chauhan on 09/08/19
}
System.out.println("returning from SoHoldRefPrc "+errString);
return (errString);
......
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