Commit d4f1d945 authored by mchauhan's avatar mchauhan

Added ITM Exception

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@204660 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 65eb91ef
......@@ -1837,6 +1837,7 @@ public class SalesContractIC extends ValidatorEJB implements SalesContractICLoca
catch(Exception e)
{
System.out.println("Exception : [ItemRegNo][itemChanged( String, String )] :==>\n" + e.getMessage());
throw new ITMException(e); //Added By Mukesh Chauhan on 05/08/19
}
return valueXmlString;
}
......@@ -3724,7 +3725,7 @@ public class SalesContractIC extends ValidatorEJB implements SalesContractICLoca
return valueXmlString.toString();
}
private int getDailyExchRate(String curr, String string, String siteCode,Timestamp contractDate, String string2, Connection conn)
private int getDailyExchRate(String curr, String string, String siteCode,Timestamp contractDate, String string2, Connection conn) throws ITMException
{
int exchRateSell = 0;
String sql = "";
......@@ -3836,12 +3837,13 @@ public class SalesContractIC extends ValidatorEJB implements SalesContractICLoca
catch (Exception e)
{
System.out.println("Exception in getDailyExchRate ........");
throw new ITMException(e); //Added By Mukesh Chauhan on 05/08/19
}
}
return exchRateSell;
}
private int getConvQuantityFact(String uom, String unitStd,String itemCode, int quantity, int num1,Connection conn)
private int getConvQuantityFact(String uom, String unitStd,String itemCode, int quantity, int num1,Connection conn) throws ITMException
{
int cnt = 0;
int fact = 0;
......@@ -4039,6 +4041,7 @@ public class SalesContractIC extends ValidatorEJB implements SalesContractICLoca
catch (Exception e)
{
System.out.println("Exception in getConvQuantityFact........");
throw new ITMException(e); //Added By Mukesh Chauhan on 05/08/19
}
return newQty;
}
......@@ -4086,7 +4089,7 @@ public class SalesContractIC extends ValidatorEJB implements SalesContractICLoca
return newQty;
}
private int getPickRate(String priceList,String nrp, Timestamp contractDate,String itemCode, String string, String string2, Connection conn)
private int getPickRate(String priceList,String nrp, Timestamp contractDate,String itemCode, String string, String string2, Connection conn) throws ITMException
{
int nrpRate = 0;
String sql = "";
......@@ -4172,11 +4175,12 @@ public class SalesContractIC extends ValidatorEJB implements SalesContractICLoca
catch (Exception e)
{
System.out.println("Exception in Pick rate get.......");
throw new ITMException(e); //Added By Mukesh Chauhan on 05/08/19
}
return nrpRate;
}
private String getPriceListType(String priceList,Connection conn)
private String getPriceListType(String priceList,Connection conn) throws ITMException
{
String sql = "";
String priceListType = "";
......@@ -4196,12 +4200,13 @@ public class SalesContractIC extends ValidatorEJB implements SalesContractICLoca
catch (Exception e)
{
System.out.println("Exception in getPriceListType ........" );
throw new ITMException(e); //Added By Mukesh Chauhan on 05/08/19
}
return priceListType;
}
private int getPickRate(String priceList, Timestamp contractDate,String itemCode, String string, String string2, int quantity, Connection conn)
private int getPickRate(String priceList, Timestamp contractDate,String itemCode, String string, String string2, int quantity, Connection conn) throws ITMException
{
int rate = 0;
String sql = "";
......@@ -4294,11 +4299,12 @@ public class SalesContractIC extends ValidatorEJB implements SalesContractICLoca
catch(Exception exc1)
{
System.out.println("GET PICK RATE EXCEPTION////////");
throw new ITMException(exc1); //Added By Mukesh Chauhan on 05/08/19
}
return rate;
}
private String errorType(Connection conn , String errorCode)
private String errorType(Connection conn , String errorCode) throws ITMException
{
String msgType = "";
PreparedStatement pstmt = null ;
......@@ -4317,6 +4323,7 @@ public class SalesContractIC extends ValidatorEJB implements SalesContractICLoca
catch(Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex); //Added By Mukesh Chauhan on 05/08/19
}
finally
{
......@@ -4341,7 +4348,7 @@ public class SalesContractIC extends ValidatorEJB implements SalesContractICLoca
return msgType;
}
private String getCurrdateInAppFormat()
private String getCurrdateInAppFormat() throws ITMException
{
String currAppdate =null;
java.sql.Timestamp currDate = null;
......@@ -4359,6 +4366,7 @@ public class SalesContractIC extends ValidatorEJB implements SalesContractICLoca
catch(Exception e)
{
System.out.println("Exception in getCurrdateInAppFormat:::"+e.getMessage());
throw new ITMException(e); //Added By Mukesh Chauhan on 05/08/19
}
return (currAppdate);
}
......
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