Commit c7dc4222 authored by mchauhan's avatar mchauhan

Added ITM Exception

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@204663 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 41c14466
...@@ -386,6 +386,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision ...@@ -386,6 +386,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision
catch (SQLException e) catch (SQLException e)
{ {
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 05/08/19
} }
finally finally
{ {
...@@ -459,7 +460,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision ...@@ -459,7 +460,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision
} }
catch(Exception e) catch(Exception e)
{ {
throw new ITMException(e); //Added By Mukesh Chauhan on 05/08/19
} }
...@@ -853,7 +854,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision ...@@ -853,7 +854,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision
} }
catch(Exception e) catch(Exception e)
{ {
throw new ITMException(e); //Added By Mukesh Chauhan on 05/08/19
} }
finally finally
{ {
...@@ -1126,6 +1127,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision ...@@ -1126,6 +1127,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision
catch(Exception e) catch(Exception e)
{ {
System.out.println("#### Exception in priceList " +e); System.out.println("#### Exception in priceList " +e);
throw new ITMException(e); //Added By Mukesh Chauhan on 05/08/19
} }
finally finally
{ {
...@@ -1212,6 +1214,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision ...@@ -1212,6 +1214,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision
{ {
System.out.println("#### Exception in SalesQuotRevision :: getInvoiceIds :"+e); System.out.println("#### Exception in SalesQuotRevision :: getInvoiceIds :"+e);
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 05/08/19
} }
...@@ -1241,7 +1244,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision ...@@ -1241,7 +1244,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision
return retString; return retString;
} }
private String getErrorType( Connection conn , String errorCode ) private String getErrorType( Connection conn , String errorCode ) throws ITMException
{ {
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
ResultSet rs = null; ResultSet rs = null;
...@@ -1261,6 +1264,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision ...@@ -1261,6 +1264,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision
catch (SQLException e) catch (SQLException e)
{ {
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 05/08/19
} }
finally finally
{ {
...@@ -1303,7 +1307,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision ...@@ -1303,7 +1307,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision
return timeDate; return timeDate;
} }
public String getDBColumnValue(String tableName, String columnName, String condition,Connection mConnection) public String getDBColumnValue(String tableName, String columnName, String condition,Connection mConnection) throws ITMException
{ {
System.out.println("#### getDBColumnValue "); System.out.println("#### getDBColumnValue ");
String columnValue = ""; String columnValue = "";
...@@ -1344,6 +1348,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision ...@@ -1344,6 +1348,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision
{ {
columnValue = ""; columnValue = "";
System.out.println("Exception in SalesQuotProposal.getDBColumnValue()"); System.out.println("Exception in SalesQuotProposal.getDBColumnValue()");
throw new ITMException(e); //Added By Mukesh Chauhan on 05/08/19
} }
finally finally
{ {
...@@ -1370,7 +1375,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision ...@@ -1370,7 +1375,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision
System.out.println(tableName +"." + columnName + " ["+columnValue+"]"); System.out.println(tableName +"." + columnName + " ["+columnValue+"]");
return columnValue.trim(); return columnValue.trim();
} }
private Map<String, String> getItemData(String itemCode, Connection conn) private Map<String, String> getItemData(String itemCode, Connection conn) throws ITMException
{ {
PreparedStatement preparedStatement = null; PreparedStatement preparedStatement = null;
ResultSet resultSet = null; ResultSet resultSet = null;
...@@ -1402,16 +1407,18 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision ...@@ -1402,16 +1407,18 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision
catch(SQLException ex) catch(SQLException ex)
{ {
System.out.println("SQLException SalesQuotProposal.getItemData() : "+ex); System.out.println("SQLException SalesQuotProposal.getItemData() : "+ex);
throw new ITMException(ex); //Added By Mukesh Chauhan on 05/08/19
} }
catch(Exception e) catch(Exception e)
{ {
System.out.println("Exception SalesQuotProposal.getItemData() : "+e); System.out.println("Exception SalesQuotProposal.getItemData() : "+e);
throw new ITMException(e); //Added By Mukesh Chauhan on 05/08/19
} }
System.out.println("##### SalesQuotProposal:: getItemData() : itemDetailMap : "+itemDetailMap); System.out.println("##### SalesQuotProposal:: getItemData() : itemDetailMap : "+itemDetailMap);
return itemDetailMap; return itemDetailMap;
} }
//private double getCostRate(Connection conn, String itemCode, Map<String, String> itemMap) //private double getCostRate(Connection conn, String itemCode, Map<String, String> itemMap)
private double getCostRate(Connection conn, String itemCode) private double getCostRate(Connection conn, String itemCode) throws ITMException
{ {
PreparedStatement preparedStatement = null; PreparedStatement preparedStatement = null;
ResultSet resultSet = null; ResultSet resultSet = null;
...@@ -1528,15 +1535,17 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision ...@@ -1528,15 +1535,17 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision
catch(SQLException ex) catch(SQLException ex)
{ {
System.out.println("@@@@ SQLException SalesQuotProposal :: getCostRate() : "+ex); System.out.println("@@@@ SQLException SalesQuotProposal :: getCostRate() : "+ex);
throw new ITMException(ex); //Added By Mukesh Chauhan on 05/08/19
} }
catch(Exception e) catch(Exception e)
{ {
System.out.println("@@@@ Exception SalesQuotProposal :: getCostRate() : "+e); System.out.println("@@@@ Exception SalesQuotProposal :: getCostRate() : "+e);
throw new ITMException(e); //Added By Mukesh Chauhan on 05/08/19
} }
return costRate; return costRate;
} }
private String getAdditionalCost(Connection conObj) private String getAdditionalCost(Connection conObj) throws ITMException
{ {
String additionalCost = ""; String additionalCost = "";
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
...@@ -1566,6 +1575,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision ...@@ -1566,6 +1575,7 @@ public class SalesQuotRevision extends ValidatorEJB implements SalesQuotRevision
catch(Exception e) catch(Exception e)
{ {
System.out.println("@@@@@ Exception in getAdditionalCost : "+e); System.out.println("@@@@@ Exception in getAdditionalCost : "+e);
throw new ITMException(e); //Added By Mukesh Chauhan on 05/08/19
} }
return additionalCost; return additionalCost;
......
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