Commit a92ba71b authored by mmhatre's avatar mmhatre

Add ITM Exception

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@204728 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4980c5e0
...@@ -53,7 +53,8 @@ public class BankIC extends ValidatorEJB implements BankICRemote, BankICLocal ...@@ -53,7 +53,8 @@ public class BankIC extends ValidatorEJB implements BankICRemote, BankICLocal
catch(Exception e) catch(Exception e)
{ {
System.out.println(":::" + getClass().getSimpleName() + "::"+ e.getMessage()); System.out.println(":::" + getClass().getSimpleName() + "::"+ e.getMessage());
e.getMessage(); e.getMessage(); //commented by manish mhatre on 06-aug-2019
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return retString; return retString;
} }
...@@ -586,7 +587,8 @@ public class BankIC extends ValidatorEJB implements BankICRemote, BankICLocal ...@@ -586,7 +587,8 @@ public class BankIC extends ValidatorEJB implements BankICRemote, BankICLocal
catch(Exception e) catch(Exception e)
{ {
System.out.println(":::" + getClass().getSimpleName() + "::"+ e.getMessage()); System.out.println(":::" + getClass().getSimpleName() + "::"+ e.getMessage());
e.getMessage(); //e.getMessage(); //commented by manish mhatre on 06-aug-2019
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return retString; return retString;
} }
......
...@@ -145,6 +145,7 @@ conn = getConnection(); ...@@ -145,6 +145,7 @@ conn = getConnection();
e.printStackTrace(); e.printStackTrace();
errCode = "VALEXCEP"; errCode = "VALEXCEP";
errString = getErrorString( "", errCode, userId ); errString = getErrorString( "", errCode, userId );
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
finally finally
{ {
...@@ -412,6 +413,7 @@ conn = getConnection(); ...@@ -412,6 +413,7 @@ conn = getConnection();
catch(SQLException sqle) catch(SQLException sqle)
{ {
System.out.println("Exception sqle ::"+ sqle.getMessage()); System.out.println("Exception sqle ::"+ sqle.getMessage());
throw new ITMException(sqle); //added by manish mhatre on 06-aug-2019
} }
catch(Exception e) catch(Exception e)
{ {
...@@ -447,7 +449,7 @@ conn = getConnection(); ...@@ -447,7 +449,7 @@ conn = getConnection();
} }
return valueXmlString.toString(); return valueXmlString.toString();
}//END OF ITEMCHANGE }//END OF ITEMCHANGE
private String getCurrdateAppFormat() private String getCurrdateAppFormat() throws ITMException
{ {
String s = ""; String s = "";
// GenericUtility genericUtility = GenericUtility.getInstance(); // GenericUtility genericUtility = GenericUtility.getInstance();
...@@ -465,6 +467,7 @@ conn = getConnection(); ...@@ -465,6 +467,7 @@ conn = getConnection();
catch(Exception exception) catch(Exception exception)
{ {
System.out.println("Exception in getCurrdateAppFormat " + exception.getMessage()); System.out.println("Exception in getCurrdateAppFormat " + exception.getMessage());
throw new ITMException(exception); //added by manish mhatre on 06-aug-2019
} }
return s; return s;
} }
......
...@@ -71,6 +71,7 @@ public class BankReco extends ValidatorEJB implements BankRecoLocal,BankRecoRemo ...@@ -71,6 +71,7 @@ public class BankReco extends ValidatorEJB implements BankRecoLocal,BankRecoRemo
{ {
System.out.println("Exception :BankRecoItmChngEJB :itemChanged(String,String) :==>\n"+e.getMessage()); System.out.println("Exception :BankRecoItmChngEJB :itemChanged(String,String) :==>\n"+e.getMessage());
valueXmlString = genericUtility.createErrorString(e); valueXmlString = genericUtility.createErrorString(e);
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return valueXmlString.toString(); return valueXmlString.toString();
} }
...@@ -112,6 +113,7 @@ conn = getConnection(); ...@@ -112,6 +113,7 @@ conn = getConnection();
catch(Exception e) catch(Exception e)
{ {
System.out.println("Exception in BankRecoItmChngEJB.java occured"); System.out.println("Exception in BankRecoItmChngEJB.java occured");
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
finally finally
{ {
......
...@@ -202,7 +202,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B ...@@ -202,7 +202,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
} }
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
errString = e.getMessage(); // errString = e.getMessage(); //commented by manish mhatre on 06-aug-2019
try { try {
conn.rollback(); conn.rollback();
} catch (Exception d) { } catch (Exception d) {
...@@ -549,7 +549,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B ...@@ -549,7 +549,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
private int getDBRowCount(Connection conn, String table_name, String whrCondCol, String whrCondVal) private int getDBRowCount(Connection conn, String table_name, String whrCondCol, String whrCondVal) throws ITMException
{ {
int count=-1; int count=-1;
...@@ -574,11 +574,13 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B ...@@ -574,11 +574,13 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
{ {
System.out.println("SQL Exception In getDBRowCount method of InterCompReconcile Class : "+e.getMessage()); System.out.println("SQL Exception In getDBRowCount method of InterCompReconcile Class : "+e.getMessage());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
catch(Exception ex) catch(Exception ex)
{ {
System.out.println("Exception In getDBRowCount method of InterCompReconcile Class : "+ex.getMessage()); System.out.println("Exception In getDBRowCount method of InterCompReconcile Class : "+ex.getMessage());
ex.printStackTrace(); ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
}finally{ }finally{
try{ try{
...@@ -600,6 +602,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B ...@@ -600,6 +602,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
throw new SQLException("Connection passed to InterCompReconcile.getDBRowCount() method is null"); throw new SQLException("Connection passed to InterCompReconcile.getDBRowCount() method is null");
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
} }
return count; return count;
...@@ -689,10 +692,12 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B ...@@ -689,10 +692,12 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
catch(SQLException e) { catch(SQLException e) {
System.out.println("SQL Exception In getXMLTransData method of BankRecoWizIC Class : "+e.getMessage()); System.out.println("SQL Exception In getXMLTransData method of BankRecoWizIC Class : "+e.getMessage());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
catch(Exception ex) { catch(Exception ex) {
System.out.println("Exception In getXMLTransData method of BankRecoWizIC Class : "+ex.getMessage()); System.out.println("Exception In getXMLTransData method of BankRecoWizIC Class : "+ex.getMessage());
ex.printStackTrace(); ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
} finally { } finally {
try { try {
if(conn != null) { if(conn != null) {
...@@ -2531,6 +2536,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B ...@@ -2531,6 +2536,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
catch(Exception e1){ catch(Exception e1){
e1.printStackTrace(); e1.printStackTrace();
} }
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
catch(Exception ex) { catch(Exception ex) {
System.out.println("Exception In getXMLTransData method of BankRecoWizIC Class : "+ex.getMessage()); System.out.println("Exception In getXMLTransData method of BankRecoWizIC Class : "+ex.getMessage());
...@@ -2544,6 +2550,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B ...@@ -2544,6 +2550,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
e1.printStackTrace(); e1.printStackTrace();
} }
ex.printStackTrace(); ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
} finally { } finally {
try{ try{
if(pstmt!=null) if(pstmt!=null)
...@@ -2572,6 +2579,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B ...@@ -2572,6 +2579,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
throw new SQLException("Connection passed to BankRecoWizIC.getXMLTransData() method is null"); throw new SQLException("Connection passed to BankRecoWizIC.getXMLTransData() method is null");
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
} }
System.out.println("final valueXmlString in getXMLTransData() method :"+valueXmlString); System.out.println("final valueXmlString in getXMLTransData() method :"+valueXmlString);
...@@ -2579,7 +2587,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B ...@@ -2579,7 +2587,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
} }
private double getReconcileAmount(String tableName,String tranId, Connection conn) private double getReconcileAmount(String tableName,String tranId, Connection conn) throws ITMException
{ {
double amount=0; double amount=0;
...@@ -2605,6 +2613,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B ...@@ -2605,6 +2613,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
catch(Exception e) catch(Exception e)
{ {
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
System.out.println("@@@@@@@ amount["+amount+"]"); System.out.println("@@@@@@@ amount["+amount+"]");
...@@ -2832,6 +2841,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B ...@@ -2832,6 +2841,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
} catch(Exception e) { } catch(Exception e) {
System.out.println("SQL Exception In getXMLTransData method of BankRecoWizIC Class : "+e.getMessage()); System.out.println("SQL Exception In getXMLTransData method of BankRecoWizIC Class : "+e.getMessage());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} finally { } finally {
try{ try{
}catch (Exception se) { }catch (Exception se) {
...@@ -2874,7 +2884,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B ...@@ -2874,7 +2884,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
return returnVal; return returnVal;
} }
private ArrayList<ArrayList> getArrayListHM(HashMap<String , Double> HMListAmount,HashMap<String , String> HMListRef) private ArrayList<ArrayList> getArrayListHM(HashMap<String , Double> HMListAmount,HashMap<String , String> HMListRef) throws ITMException
{ {
ArrayList<ArrayList> resultList = new ArrayList<ArrayList>(); ArrayList<ArrayList> resultList = new ArrayList<ArrayList>();
ArrayList tempList = null; ArrayList tempList = null;
...@@ -2913,11 +2923,12 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B ...@@ -2913,11 +2923,12 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
} }
catch(Exception e) { catch(Exception e) {
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return resultList; return resultList;
} }
private StringBuffer getGPNOBillNo(String refId , String refSer , String sundryCode ,String tranId,StringBuffer valueXmlString,Connection conn) private StringBuffer getGPNOBillNo(String refId , String refSer , String sundryCode ,String tranId,StringBuffer valueXmlString,Connection conn) throws ITMException
{ {
String gpNo="",gpDate="",billNo="",billDate="",sql=""; String gpNo="",gpDate="",billNo="",billDate="",sql="";
...@@ -3023,6 +3034,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B ...@@ -3023,6 +3034,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
catch (Exception e) catch (Exception e)
{ {
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return valueXmlString; return valueXmlString;
...@@ -3030,7 +3042,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B ...@@ -3030,7 +3042,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
} }
protected String getColumnDescr(Connection conn, String columnName ,String tableName, String columnName2, String value) protected String getColumnDescr(Connection conn, String columnName ,String tableName, String columnName2, String value) throws ITMException
{ {
PreparedStatement pstmt = null ; PreparedStatement pstmt = null ;
...@@ -3056,6 +3068,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B ...@@ -3056,6 +3068,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
{ {
System.out.println("Exception in getColumnDescr "); System.out.println("Exception in getColumnDescr ");
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
System.out.println("returning String from getColumnDescr " + findValue); System.out.println("returning String from getColumnDescr " + findValue);
return findValue; return findValue;
...@@ -4266,10 +4279,12 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B ...@@ -4266,10 +4279,12 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
catch(SQLException e) { catch(SQLException e) {
System.out.println("SQL Exception In getXMLTransData method of BankRecoWizIC Class : "+e.getMessage()); System.out.println("SQL Exception In getXMLTransData method of BankRecoWizIC Class : "+e.getMessage());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
catch(Exception ex) { catch(Exception ex) {
System.out.println("Exception In getXMLTransData method of BankRecoWizIC Class : "+ex.getMessage()); System.out.println("Exception In getXMLTransData method of BankRecoWizIC Class : "+ex.getMessage());
ex.printStackTrace(); ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
} finally { } finally {
try { try {
if(conn != null) { if(conn != null) {
...@@ -4335,7 +4350,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B ...@@ -4335,7 +4350,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
}*/ }*/
public String getValuesForPopHelp(String bankCode,String keyString){ public String getValuesForPopHelp(String bankCode,String keyString) throws ITMException{
System.out.println("in getValuesForPopHelp EJB called222---------------"); System.out.println("in getValuesForPopHelp EJB called222---------------");
System.out.println("------changes for encoding-----------------"); System.out.println("------changes for encoding-----------------");
System.out.println("bankCode-->>["+bankCode+"]"); System.out.println("bankCode-->>["+bankCode+"]");
...@@ -4396,6 +4411,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B ...@@ -4396,6 +4411,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
catch(Exception e){ catch(Exception e){
System.out.println("Exception in getValuesForPopHelp............."); System.out.println("Exception in getValuesForPopHelp.............");
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
finally{ finally{
try{ try{
...@@ -4415,7 +4431,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B ...@@ -4415,7 +4431,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
public List<String> listOfTranId(String key ,String tableName,String autoRecoFilter,String siteCode,String bankCode,Connection conn) public List<String> listOfTranId(String key ,String tableName,String autoRecoFilter,String siteCode,String bankCode,Connection conn) throws ITMException
{ {
String sql="",refNo="",refDate="",tranId=""; String sql="",refNo="",refDate="",tranId="";
PreparedStatement pstmt=null; PreparedStatement pstmt=null;
...@@ -4499,6 +4515,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B ...@@ -4499,6 +4515,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
catch(Exception e) catch(Exception e)
{ {
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return tranIdList; return tranIdList;
......
...@@ -644,12 +644,14 @@ conn = getConnection(); ...@@ -644,12 +644,14 @@ conn = getConnection();
{ {
errString="VTPRCERR"; errString="VTPRCERR";
System.out.println("SQLException(insert in to Trace) :[Excuting Query Failed ]" + insert + seinsert.getMessage()); System.out.println("SQLException(insert in to Trace) :[Excuting Query Failed ]" + insert + seinsert.getMessage());
throw new ITMException(seinsert); //added by manish mhatre on 06-aug-2019
} }
catch(Exception exinsert) catch(Exception exinsert)
{ {
System.out.println("Exception(insert in to Trace) ::"+insert +exinsert.getMessage()); System.out.println("Exception(insert in to Trace) ::"+insert +exinsert.getMessage());
errString="VTPRCERR"; errString="VTPRCERR";
exinsert.printStackTrace(); exinsert.printStackTrace();
throw new ITMException(exinsert); //added by manish mhatre on 06-aug-2019
} }
return errString; return errString;
} }
......
...@@ -218,7 +218,7 @@ public class BankReconPrcIC extends ValidatorEJB ...@@ -218,7 +218,7 @@ public class BankReconPrcIC extends ValidatorEJB
catch(Exception e) catch(Exception e)
{ {
e.printStackTrace(); e.printStackTrace();
errString = e.getMessage(); //errString = e.getMessage(); //commented by manish mhatre on 06-aug-2019
throw new ITMException(e); throw new ITMException(e);
} }
finally finally
...@@ -267,7 +267,7 @@ public class BankReconPrcIC extends ValidatorEJB ...@@ -267,7 +267,7 @@ public class BankReconPrcIC extends ValidatorEJB
return inputVal; return inputVal;
} }
private String errorType(Connection conn , String errorCode) private String errorType(Connection conn , String errorCode) throws ITMException
{ {
String msgType = ""; String msgType = "";
PreparedStatement pstmt = null ; PreparedStatement pstmt = null ;
...@@ -290,6 +290,7 @@ public class BankReconPrcIC extends ValidatorEJB ...@@ -290,6 +290,7 @@ public class BankReconPrcIC extends ValidatorEJB
catch(Exception ex) catch(Exception ex)
{ {
ex.printStackTrace(); ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
} }
finally finally
{ {
......
...@@ -73,6 +73,7 @@ public class BankStartReco extends ValidatorEJB implements BankStartRecoLocal,Ba ...@@ -73,6 +73,7 @@ public class BankStartReco extends ValidatorEJB implements BankStartRecoLocal,Ba
{ {
System.out.println("Exception :BankRecoItmChngEJB :itemChanged(String,String) :==>\n"+e.getMessage()); System.out.println("Exception :BankRecoItmChngEJB :itemChanged(String,String) :==>\n"+e.getMessage());
valueXmlString = genericUtility.createErrorString(e); valueXmlString = genericUtility.createErrorString(e);
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return valueXmlString.toString(); return valueXmlString.toString();
} }
...@@ -116,6 +117,7 @@ conn = getConnection(); ...@@ -116,6 +117,7 @@ conn = getConnection();
catch(Exception e) catch(Exception e)
{ {
System.out.println("Exception in BankRecoItmChngEJB.java occured"); System.out.println("Exception in BankRecoItmChngEJB.java occured");
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
finally finally
{ {
......
...@@ -58,6 +58,7 @@ public class BlockCctrActive extends ValidatorEJB implements BlockCctrActiveLoca ...@@ -58,6 +58,7 @@ public class BlockCctrActive extends ValidatorEJB implements BlockCctrActiveLoca
System.out System.out
.println("Exception : CrlimitValid : wfValData(String xmlString) : ==>\n" .println("Exception : CrlimitValid : wfValData(String xmlString) : ==>\n"
+ e.getMessage()); + e.getMessage());
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return (errString); return (errString);
} }
...@@ -238,6 +239,7 @@ conn = getConnection(); ...@@ -238,6 +239,7 @@ conn = getConnection();
e.printStackTrace(); e.printStackTrace();
errCode = "VALEXCEP"; errCode = "VALEXCEP";
errString = getErrorString("", errCode, userId); errString = getErrorString("", errCode, userId);
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} finally { } finally {
try { try {
if (conn != null) { if (conn != null) {
...@@ -291,6 +293,7 @@ conn = getConnection(); ...@@ -291,6 +293,7 @@ conn = getConnection();
+ e.getMessage() + ":"); + e.getMessage() + ":");
valueXmlString = genericUtility.createErrorString(e); valueXmlString = genericUtility.createErrorString(e);
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
System.out.println("returning from BlockCctrActive itemChanged"); System.out.println("returning from BlockCctrActive itemChanged");
return (valueXmlString); return (valueXmlString);
...@@ -408,6 +411,7 @@ conn = getConnection(); ...@@ -408,6 +411,7 @@ conn = getConnection();
valueXmlString.delete(0, valueXmlString.length()); valueXmlString.delete(0, valueXmlString.length());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} finally { } finally {
try { try {
if (rs != null) { if (rs != null) {
......
...@@ -450,7 +450,7 @@ conn = getConnection(); ...@@ -450,7 +450,7 @@ conn = getConnection();
{ {
System.out.println("Exception ::"+e); System.out.println("Exception ::"+e);
e.printStackTrace(); e.printStackTrace();
errString=e.getMessage(); //errString=e.getMessage(); //commented by manish mhatre on 06-aug-2019
throw new ITMException(e); throw new ITMException(e);
} }
finally finally
...@@ -500,6 +500,7 @@ conn = getConnection(); ...@@ -500,6 +500,7 @@ conn = getConnection();
catch(Exception e) catch(Exception e)
{ {
System.out.println("Exception : [budgetgroup ][itemChanged(String,String)] :==>\n"+e.getMessage()); System.out.println("Exception : [budgetgroup ][itemChanged(String,String)] :==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return valueXmlString; return valueXmlString;
} }
......
...@@ -280,7 +280,8 @@ conn = getConnection(); ...@@ -280,7 +280,8 @@ conn = getConnection();
catch(Exception e) catch(Exception e)
{ {
e.printStackTrace(); e.printStackTrace();
errString = e.getMessage(); //errString = e.getMessage(); //commented by manish mhatre on 06-aug-2019
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
finally finally
{ {
...@@ -329,6 +330,7 @@ conn = getConnection(); ...@@ -329,6 +330,7 @@ conn = getConnection();
catch(Exception e) catch(Exception e)
{ {
System.out.println("Exception : [BudgetGroupAcct ][itemChanged(String,String)] :==>\n"+e.getMessage()); System.out.println("Exception : [BudgetGroupAcct ][itemChanged(String,String)] :==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return valueXmlString; return valueXmlString;
} }
...@@ -472,7 +474,7 @@ conn = getConnection(); ...@@ -472,7 +474,7 @@ conn = getConnection();
} }
private int getDBRowCount(Connection conn, String table_name, String whrCondCol, String whrCondVal) private int getDBRowCount(Connection conn, String table_name, String whrCondCol, String whrCondVal) throws ITMException
{ {
int count=-1; int count=-1;
...@@ -497,11 +499,13 @@ conn = getConnection(); ...@@ -497,11 +499,13 @@ conn = getConnection();
{ {
System.out.println("SQL Exception In getDBRowCount method of BudgetGroupAcct Class : "+e.getMessage()); System.out.println("SQL Exception In getDBRowCount method of BudgetGroupAcct Class : "+e.getMessage());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
catch(Exception ex) catch(Exception ex)
{ {
System.out.println("Exception In getDBRowCount method of BudgetGroupAcct Class : "+ex.getMessage()); System.out.println("Exception In getDBRowCount method of BudgetGroupAcct Class : "+ex.getMessage());
ex.printStackTrace(); ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
}finally{ }finally{
try{ try{
...@@ -523,6 +527,7 @@ conn = getConnection(); ...@@ -523,6 +527,7 @@ conn = getConnection();
throw new SQLException("Connection passed to BudgetGroupAcct.getDBRowCount() method is null"); throw new SQLException("Connection passed to BudgetGroupAcct.getDBRowCount() method is null");
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
} }
...@@ -530,7 +535,7 @@ conn = getConnection(); ...@@ -530,7 +535,7 @@ conn = getConnection();
} }
private String getNameOrDescrForCode(Connection conn, String table_name, String descr_col_name,String whrCondCol, String whrCondVal) private String getNameOrDescrForCode(Connection conn, String table_name, String descr_col_name,String whrCondCol, String whrCondVal) throws ITMException
{ {
String descr = null; String descr = null;
...@@ -556,11 +561,13 @@ conn = getConnection(); ...@@ -556,11 +561,13 @@ conn = getConnection();
{ {
System.out.println("SQL Exception In getNameOrDescrForCode method of BudgetGroupAcct Class : "+e.getMessage()); System.out.println("SQL Exception In getNameOrDescrForCode method of BudgetGroupAcct Class : "+e.getMessage());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
catch(Exception ex) catch(Exception ex)
{ {
System.out.println("Exception In getNameOrDescrForCode method of BudgetGroupAcct Class : "+ex.getMessage()); System.out.println("Exception In getNameOrDescrForCode method of BudgetGroupAcct Class : "+ex.getMessage());
ex.printStackTrace(); ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
}finally{ }finally{
try{ try{
...@@ -582,6 +589,7 @@ conn = getConnection(); ...@@ -582,6 +589,7 @@ conn = getConnection();
throw new SQLException("Connection passed to BudgetGroupAcct.getNameOrDescrForCode() method is null"); throw new SQLException("Connection passed to BudgetGroupAcct.getNameOrDescrForCode() method is null");
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
} }
......
...@@ -269,7 +269,8 @@ conn = getConnection(); ...@@ -269,7 +269,8 @@ conn = getConnection();
catch(Exception e) catch(Exception e)
{ {
e.printStackTrace(); e.printStackTrace();
errString = e.getMessage(); //errString = e.getMessage(); //commented by manish mhatre on 06-aug-2019
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
finally finally
{ {
...@@ -318,6 +319,7 @@ conn = getConnection(); ...@@ -318,6 +319,7 @@ conn = getConnection();
catch(Exception e) catch(Exception e)
{ {
System.out.println("Exception : [BudgetGroupAcctAmd ][itemChanged(String,String)] :==>\n"+e.getMessage()); System.out.println("Exception : [BudgetGroupAcctAmd ][itemChanged(String,String)] :==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return valueXmlString; return valueXmlString;
} }
...@@ -509,7 +511,7 @@ conn = getConnection(); ...@@ -509,7 +511,7 @@ conn = getConnection();
} }
private int getDBRowCount(Connection conn, String table_name, String whrCondCol, String whrCondVal) private int getDBRowCount(Connection conn, String table_name, String whrCondCol, String whrCondVal) throws ITMException
{ {
int count=-1; int count=-1;
...@@ -534,11 +536,13 @@ conn = getConnection(); ...@@ -534,11 +536,13 @@ conn = getConnection();
{ {
System.out.println("SQL Exception In getDBRowCount method of BudgetGroupAcctAmd Class : "+e.getMessage()); System.out.println("SQL Exception In getDBRowCount method of BudgetGroupAcctAmd Class : "+e.getMessage());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
catch(Exception ex) catch(Exception ex)
{ {
System.out.println("Exception In getDBRowCount method of BudgetGroupAcctAmd Class : "+ex.getMessage()); System.out.println("Exception In getDBRowCount method of BudgetGroupAcctAmd Class : "+ex.getMessage());
ex.printStackTrace(); ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
}finally{ }finally{
try{ try{
...@@ -560,6 +564,7 @@ conn = getConnection(); ...@@ -560,6 +564,7 @@ conn = getConnection();
throw new SQLException("Connection passed to BudgetGroupAcctAmd.getDBRowCount() method is null"); throw new SQLException("Connection passed to BudgetGroupAcctAmd.getDBRowCount() method is null");
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
} }
...@@ -567,7 +572,7 @@ conn = getConnection(); ...@@ -567,7 +572,7 @@ conn = getConnection();
} }
private String getNameOrDescrForCode(Connection conn, String table_name, String descr_col_name,String whrCondCol, String whrCondVal) private String getNameOrDescrForCode(Connection conn, String table_name, String descr_col_name,String whrCondCol, String whrCondVal) throws ITMException
{ {
String descr = null; String descr = null;
...@@ -593,11 +598,13 @@ conn = getConnection(); ...@@ -593,11 +598,13 @@ conn = getConnection();
{ {
System.out.println("SQL Exception In getNameOrDescrForCode method of BudgetGroupAcctAmd Class : "+e.getMessage()); System.out.println("SQL Exception In getNameOrDescrForCode method of BudgetGroupAcctAmd Class : "+e.getMessage());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
catch(Exception ex) catch(Exception ex)
{ {
System.out.println("Exception In getNameOrDescrForCode method of BudgetGroupAcctAmd Class : "+ex.getMessage()); System.out.println("Exception In getNameOrDescrForCode method of BudgetGroupAcctAmd Class : "+ex.getMessage());
ex.printStackTrace(); ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
}finally{ }finally{
try{ try{
...@@ -619,6 +626,7 @@ conn = getConnection(); ...@@ -619,6 +626,7 @@ conn = getConnection();
throw new SQLException("Connection passed to BudgetGroupAcctAmd.getNameOrDescrForCode() method is null"); throw new SQLException("Connection passed to BudgetGroupAcctAmd.getNameOrDescrForCode() method is null");
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
} }
......
...@@ -44,6 +44,7 @@ public class BudgetGroupAcctAmdConfirm extends ActionHandlerEJB implements Budge ...@@ -44,6 +44,7 @@ public class BudgetGroupAcctAmdConfirm extends ActionHandlerEJB implements Budge
System.out.println("Exception :BudgetGroupAcctAmdConfirm :actionHandler():" + e.getMessage() + ":"); System.out.println("Exception :BudgetGroupAcctAmdConfirm :actionHandler():" + e.getMessage() + ":");
retString = genericUtility.createErrorString(e); retString = genericUtility.createErrorString(e);
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return retString; return retString;
...@@ -141,7 +142,7 @@ conn = getConnection(); ...@@ -141,7 +142,7 @@ conn = getConnection();
private String updateBudgetAmmend(Connection conn,String tranIdAmd,String xtraParams) private String updateBudgetAmmend(Connection conn,String tranIdAmd,String xtraParams) throws ITMException
{ {
...@@ -355,6 +356,7 @@ conn = getConnection(); ...@@ -355,6 +356,7 @@ conn = getConnection();
{ {
e1.printStackTrace(); e1.printStackTrace();
} }
throw new ITMException(se); //added by manish mhatre on 06-aug-2019
} }
catch(Exception e) catch(Exception e)
{ {
...@@ -381,13 +383,13 @@ conn = getConnection(); ...@@ -381,13 +383,13 @@ conn = getConnection();
{ {
System.out.println(e.getMessage()); System.out.println(e.getMessage());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return errString; return errString;
} }
private java.sql.Timestamp getCurrdateAppFormat() private java.sql.Timestamp getCurrdateAppFormat() throws ITMException
{ {
// GenericUtility genericUtility = GenericUtility.getInstance(); // GenericUtility genericUtility = GenericUtility.getInstance();
Timestamp timestamp = null; Timestamp timestamp = null;
...@@ -403,6 +405,7 @@ conn = getConnection(); ...@@ -403,6 +405,7 @@ conn = getConnection();
{ {
System.out.println("Exception in [BudgetGroupAcctAmdConfirm] getCurrdateAppFormat " + exception.getMessage()); System.out.println("Exception in [BudgetGroupAcctAmdConfirm] getCurrdateAppFormat " + exception.getMessage());
exception.printStackTrace(); exception.printStackTrace();
throw new ITMException(exception); //added by manish mhatre on 06-aug-2019
} }
return timestamp; return timestamp;
} }
......
...@@ -34,13 +34,14 @@ public class BudgetGroupAcctConfirm extends ActionHandlerEJB implements BudgetG ...@@ -34,13 +34,14 @@ public class BudgetGroupAcctConfirm extends ActionHandlerEJB implements BudgetG
System.out.println("Exception :BudgetGroupAcctConfirm :actionHandler():" + e.getMessage() + ":"); System.out.println("Exception :BudgetGroupAcctConfirm :actionHandler():" + e.getMessage() + ":");
retString = genericUtility.createErrorString(e); retString = genericUtility.createErrorString(e);
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return retString; return retString;
} }
private String confirmBudget(String tranId,String xtraParams,String forcedFlag) private String confirmBudget(String tranId,String xtraParams,String forcedFlag) throws ITMException
{ {
System.out.println("--------------confirm method of BudgetGroupAcctConfirm ------------- "); System.out.println("--------------confirm method of BudgetGroupAcctConfirm ------------- ");
...@@ -102,7 +103,7 @@ conn = getConnection(); ...@@ -102,7 +103,7 @@ conn = getConnection();
} }
e.printStackTrace(); e.printStackTrace();
System.out.println("Exception ::"+e.getMessage()); System.out.println("Exception ::"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
finally finally
{ {
...@@ -135,7 +136,7 @@ conn = getConnection(); ...@@ -135,7 +136,7 @@ conn = getConnection();
private int updateConfirm(Connection conn,String tranId,String xtraParams) private int updateConfirm(Connection conn,String tranId,String xtraParams) throws ITMException
{ {
System.out.println("---------in updateConfirm method------------"); System.out.println("---------in updateConfirm method------------");
String loginEmpCode ="",sql; String loginEmpCode ="",sql;
...@@ -167,6 +168,7 @@ conn = getConnection(); ...@@ -167,6 +168,7 @@ conn = getConnection();
{ {
e1.printStackTrace(); e1.printStackTrace();
} }
throw new ITMException(se); //added by manish mhatre on 06-aug-2019
} }
catch(Exception e) catch(Exception e)
{ {
...@@ -179,6 +181,7 @@ conn = getConnection(); ...@@ -179,6 +181,7 @@ conn = getConnection();
e1.printStackTrace(); e1.printStackTrace();
} }
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
try try
{ {
...@@ -193,12 +196,12 @@ conn = getConnection(); ...@@ -193,12 +196,12 @@ conn = getConnection();
{ {
System.out.println(e.getMessage()); System.out.println(e.getMessage());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return count; return count;
} }
private java.sql.Timestamp getCurrdateAppFormat() private java.sql.Timestamp getCurrdateAppFormat() throws ITMException
{ {
// GenericUtility genericUtility = GenericUtility.getInstance(); // GenericUtility genericUtility = GenericUtility.getInstance();
Timestamp timestamp = null; Timestamp timestamp = null;
...@@ -214,6 +217,7 @@ conn = getConnection(); ...@@ -214,6 +217,7 @@ conn = getConnection();
{ {
System.out.println("Exception in [BudgetGroupAcctConfirm] getCurrdateAppFormat " + exception.getMessage()); System.out.println("Exception in [BudgetGroupAcctConfirm] getCurrdateAppFormat " + exception.getMessage());
exception.printStackTrace(); exception.printStackTrace();
throw new ITMException(exception); //added by manish mhatre on 06-aug-2019
} }
return timestamp; return timestamp;
} }
......
...@@ -280,7 +280,8 @@ conn = getConnection(); ...@@ -280,7 +280,8 @@ conn = getConnection();
catch(Exception e) catch(Exception e)
{ {
e.printStackTrace(); e.printStackTrace();
errString = e.getMessage(); //errString = e.getMessage(); //commented by manish mhatre on 06-aug-2019
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
finally finally
{ {
...@@ -329,6 +330,7 @@ conn = getConnection(); ...@@ -329,6 +330,7 @@ conn = getConnection();
catch(Exception e) catch(Exception e)
{ {
System.out.println("Exception : [BudgetGroupAcct ][itemChanged(String,String)] :==>\n"+e.getMessage()); System.out.println("Exception : [BudgetGroupAcct ][itemChanged(String,String)] :==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return valueXmlString; return valueXmlString;
} }
...@@ -472,7 +474,7 @@ conn = getConnection(); ...@@ -472,7 +474,7 @@ conn = getConnection();
} }
private int getDBRowCount(Connection conn, String table_name, String whrCondCol, String whrCondVal) private int getDBRowCount(Connection conn, String table_name, String whrCondCol, String whrCondVal) throws ITMException
{ {
int count=-1; int count=-1;
...@@ -497,11 +499,13 @@ conn = getConnection(); ...@@ -497,11 +499,13 @@ conn = getConnection();
{ {
System.out.println("SQL Exception In getDBRowCount method of BudgetGroupAcct Class : "+e.getMessage()); System.out.println("SQL Exception In getDBRowCount method of BudgetGroupAcct Class : "+e.getMessage());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
catch(Exception ex) catch(Exception ex)
{ {
System.out.println("Exception In getDBRowCount method of BudgetGroupAcct Class : "+ex.getMessage()); System.out.println("Exception In getDBRowCount method of BudgetGroupAcct Class : "+ex.getMessage());
ex.printStackTrace(); ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
}finally{ }finally{
try{ try{
...@@ -523,6 +527,7 @@ conn = getConnection(); ...@@ -523,6 +527,7 @@ conn = getConnection();
throw new SQLException("Connection passed to BudgetGroupAcct.getDBRowCount() method is null"); throw new SQLException("Connection passed to BudgetGroupAcct.getDBRowCount() method is null");
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
} }
...@@ -530,7 +535,7 @@ conn = getConnection(); ...@@ -530,7 +535,7 @@ conn = getConnection();
} }
private String getNameOrDescrForCode(Connection conn, String table_name, String descr_col_name,String whrCondCol, String whrCondVal) private String getNameOrDescrForCode(Connection conn, String table_name, String descr_col_name,String whrCondCol, String whrCondVal) throws ITMException
{ {
String descr = ""; String descr = "";
...@@ -556,11 +561,13 @@ conn = getConnection(); ...@@ -556,11 +561,13 @@ conn = getConnection();
{ {
System.out.println("SQL Exception In getNameOrDescrForCode method of BudgetGroupAcct Class : "+e.getMessage()); System.out.println("SQL Exception In getNameOrDescrForCode method of BudgetGroupAcct Class : "+e.getMessage());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
catch(Exception ex) catch(Exception ex)
{ {
System.out.println("Exception In getNameOrDescrForCode method of BudgetGroupAcct Class : "+ex.getMessage()); System.out.println("Exception In getNameOrDescrForCode method of BudgetGroupAcct Class : "+ex.getMessage());
ex.printStackTrace(); ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
}finally{ }finally{
try{ try{
...@@ -582,6 +589,7 @@ conn = getConnection(); ...@@ -582,6 +589,7 @@ conn = getConnection();
throw new SQLException("Connection passed to BudgetGroupAcct.getNameOrDescrForCode() method is null"); throw new SQLException("Connection passed to BudgetGroupAcct.getNameOrDescrForCode() method is null");
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
} }
......
...@@ -272,7 +272,8 @@ conn = getConnection(); ...@@ -272,7 +272,8 @@ conn = getConnection();
catch(Exception e) catch(Exception e)
{ {
e.printStackTrace(); e.printStackTrace();
errString = e.getMessage(); //errString = e.getMessage(); //commented by manish mhatre on 06-aug-2019
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
finally finally
{ {
...@@ -321,6 +322,7 @@ conn = getConnection(); ...@@ -321,6 +322,7 @@ conn = getConnection();
catch(Exception e) catch(Exception e)
{ {
System.out.println("Exception : [BudgetGroupAcctAmd ][itemChanged(String,String)] :==>\n"+e.getMessage()); System.out.println("Exception : [BudgetGroupAcctAmd ][itemChanged(String,String)] :==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return valueXmlString; return valueXmlString;
} }
...@@ -516,7 +518,7 @@ conn = getConnection(); ...@@ -516,7 +518,7 @@ conn = getConnection();
} }
private int getDBRowCount(Connection conn, String table_name, String whrCondCol, String whrCondVal) private int getDBRowCount(Connection conn, String table_name, String whrCondCol, String whrCondVal) throws ITMException
{ {
int count=-1; int count=-1;
...@@ -541,11 +543,13 @@ conn = getConnection(); ...@@ -541,11 +543,13 @@ conn = getConnection();
{ {
System.out.println("SQL Exception In getDBRowCount method of BudgetGroupAcctAmd Class : "+e.getMessage()); System.out.println("SQL Exception In getDBRowCount method of BudgetGroupAcctAmd Class : "+e.getMessage());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
catch(Exception ex) catch(Exception ex)
{ {
System.out.println("Exception In getDBRowCount method of BudgetGroupAcctAmd Class : "+ex.getMessage()); System.out.println("Exception In getDBRowCount method of BudgetGroupAcctAmd Class : "+ex.getMessage());
ex.printStackTrace(); ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
}finally{ }finally{
try{ try{
...@@ -567,6 +571,7 @@ conn = getConnection(); ...@@ -567,6 +571,7 @@ conn = getConnection();
throw new SQLException("Connection passed to BudgetGroupAcctAmd.getDBRowCount() method is null"); throw new SQLException("Connection passed to BudgetGroupAcctAmd.getDBRowCount() method is null");
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
} }
...@@ -574,7 +579,7 @@ conn = getConnection(); ...@@ -574,7 +579,7 @@ conn = getConnection();
} }
private String getNameOrDescrForCode(Connection conn, String table_name, String descr_col_name,String whrCondCol, String whrCondVal) private String getNameOrDescrForCode(Connection conn, String table_name, String descr_col_name,String whrCondCol, String whrCondVal) throws ITMException
{ {
String descr = ""; String descr = "";
...@@ -600,11 +605,13 @@ conn = getConnection(); ...@@ -600,11 +605,13 @@ conn = getConnection();
{ {
System.out.println("SQL Exception In getNameOrDescrForCode method of BudgetGroupAcctAmd Class : "+e.getMessage()); System.out.println("SQL Exception In getNameOrDescrForCode method of BudgetGroupAcctAmd Class : "+e.getMessage());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
catch(Exception ex) catch(Exception ex)
{ {
System.out.println("Exception In getNameOrDescrForCode method of BudgetGroupAcctAmd Class : "+ex.getMessage()); System.out.println("Exception In getNameOrDescrForCode method of BudgetGroupAcctAmd Class : "+ex.getMessage());
ex.printStackTrace(); ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
}finally{ }finally{
try{ try{
...@@ -626,6 +633,7 @@ conn = getConnection(); ...@@ -626,6 +633,7 @@ conn = getConnection();
throw new SQLException("Connection passed to BudgetGroupAcctAmd.getNameOrDescrForCode() method is null"); throw new SQLException("Connection passed to BudgetGroupAcctAmd.getNameOrDescrForCode() method is null");
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
} }
......
...@@ -44,6 +44,7 @@ public class BudgetGroupAlloAmdConfirm extends ActionHandlerEJB implements Budge ...@@ -44,6 +44,7 @@ public class BudgetGroupAlloAmdConfirm extends ActionHandlerEJB implements Budge
System.out.println("Exception :BudgetGroupAcctAmdConfirm :actionHandler():" + e.getMessage() + ":"); System.out.println("Exception :BudgetGroupAcctAmdConfirm :actionHandler():" + e.getMessage() + ":");
retString = genericUtility.createErrorString(e); retString = genericUtility.createErrorString(e);
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return retString; return retString;
...@@ -141,7 +142,7 @@ conn = getConnection(); ...@@ -141,7 +142,7 @@ conn = getConnection();
private String updateBudgetAmmend(Connection conn,String tranIdAmd,String xtraParams) private String updateBudgetAmmend(Connection conn,String tranIdAmd,String xtraParams) throws ITMException
{ {
...@@ -357,6 +358,7 @@ conn = getConnection(); ...@@ -357,6 +358,7 @@ conn = getConnection();
{ {
e1.printStackTrace(); e1.printStackTrace();
} }
throw new ITMException(se); //added by manish mhatre on 06-aug-2019
} }
catch(Exception e) catch(Exception e)
{ {
...@@ -383,7 +385,7 @@ conn = getConnection(); ...@@ -383,7 +385,7 @@ conn = getConnection();
{ {
System.out.println(e.getMessage()); System.out.println(e.getMessage());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return errString; return errString;
...@@ -391,7 +393,7 @@ conn = getConnection(); ...@@ -391,7 +393,7 @@ conn = getConnection();
public String confirmBudAmdWKFL(String tranIdAmd,String xtraParams, String forcedFlag) // added by cpatil public String confirmBudAmdWKFL(String tranIdAmd,String xtraParams, String forcedFlag) throws ITMException // added by cpatil
{ {
...@@ -642,6 +644,7 @@ conn = getConnection(); ...@@ -642,6 +644,7 @@ conn = getConnection();
{ {
e1.printStackTrace(); e1.printStackTrace();
} }
throw new ITMException(se); //added by manish mhatre on 06-aug-2019
} }
catch(Exception e) catch(Exception e)
{ {
...@@ -668,13 +671,13 @@ conn = getConnection(); ...@@ -668,13 +671,13 @@ conn = getConnection();
{ {
System.out.println(e.getMessage()); System.out.println(e.getMessage());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return errString; return errString;
} }
private java.sql.Timestamp getCurrdateAppFormat() private java.sql.Timestamp getCurrdateAppFormat() throws ITMException
{ {
// GenericUtility genericUtility = GenericUtility.getInstance(); // GenericUtility genericUtility = GenericUtility.getInstance();
Timestamp timestamp = null; Timestamp timestamp = null;
...@@ -690,6 +693,7 @@ conn = getConnection(); ...@@ -690,6 +693,7 @@ conn = getConnection();
{ {
System.out.println("Exception in [BudgetGroupAcctAmdConfirm] getCurrdateAppFormat " + exception.getMessage()); System.out.println("Exception in [BudgetGroupAcctAmdConfirm] getCurrdateAppFormat " + exception.getMessage());
exception.printStackTrace(); exception.printStackTrace();
throw new ITMException(exception); //added by manish mhatre on 06-aug-2019
} }
return timestamp; return timestamp;
} }
......
...@@ -34,13 +34,14 @@ public class BudgetGroupAlloConfirm extends ActionHandlerEJB implements BudgetG ...@@ -34,13 +34,14 @@ public class BudgetGroupAlloConfirm extends ActionHandlerEJB implements BudgetG
System.out.println("Exception :BudgetGroupAcctConfirm :actionHandler():" + e.getMessage() + ":"); System.out.println("Exception :BudgetGroupAcctConfirm :actionHandler():" + e.getMessage() + ":");
retString = genericUtility.createErrorString(e); retString = genericUtility.createErrorString(e);
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return retString; return retString;
} }
private String confirmBudget(String tranId,String xtraParams,String forcedFlag) private String confirmBudget(String tranId,String xtraParams,String forcedFlag) throws ITMException
{ {
System.out.println("--------------confirm method of BudgetGroupAcctConfirm ------------- "); System.out.println("--------------confirm method of BudgetGroupAcctConfirm ------------- ");
...@@ -102,7 +103,7 @@ conn = getConnection(); ...@@ -102,7 +103,7 @@ conn = getConnection();
} }
e.printStackTrace(); e.printStackTrace();
System.out.println("Exception ::"+e.getMessage()); System.out.println("Exception ::"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
finally finally
{ {
...@@ -135,7 +136,7 @@ conn = getConnection(); ...@@ -135,7 +136,7 @@ conn = getConnection();
private int updateConfirm(Connection conn,String tranId,String xtraParams) private int updateConfirm(Connection conn,String tranId,String xtraParams) throws ITMException
{ {
System.out.println("---------in updateConfirm method------------"); System.out.println("---------in updateConfirm method------------");
String loginEmpCode ="",sql; String loginEmpCode ="",sql;
...@@ -167,6 +168,7 @@ conn = getConnection(); ...@@ -167,6 +168,7 @@ conn = getConnection();
{ {
e1.printStackTrace(); e1.printStackTrace();
} }
throw new ITMException(se); //added by manish mhatre on 06-aug-2019
} }
catch(Exception e) catch(Exception e)
{ {
...@@ -179,6 +181,7 @@ conn = getConnection(); ...@@ -179,6 +181,7 @@ conn = getConnection();
e1.printStackTrace(); e1.printStackTrace();
} }
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
try try
{ {
...@@ -193,12 +196,13 @@ conn = getConnection(); ...@@ -193,12 +196,13 @@ conn = getConnection();
{ {
System.out.println(e.getMessage()); System.out.println(e.getMessage());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
return count; return count;
} }
private java.sql.Timestamp getCurrdateAppFormat() private java.sql.Timestamp getCurrdateAppFormat() throws ITMException
{ {
// GenericUtility genericUtility = GenericUtility.getInstance(); // GenericUtility genericUtility = GenericUtility.getInstance();
Timestamp timestamp = null; Timestamp timestamp = null;
...@@ -214,6 +218,7 @@ conn = getConnection(); ...@@ -214,6 +218,7 @@ conn = getConnection();
{ {
System.out.println("Exception in [BudgetGroupAcctConfirm] getCurrdateAppFormat " + exception.getMessage()); System.out.println("Exception in [BudgetGroupAcctConfirm] getCurrdateAppFormat " + exception.getMessage());
exception.printStackTrace(); exception.printStackTrace();
throw new ITMException(exception); //added by manish mhatre on 06-aug-2019
} }
return timestamp; return timestamp;
} }
......
...@@ -407,6 +407,7 @@ public class BudgetGrpAcctGenPrc extends ActionHandlerEJB implements BudgetGrpAc ...@@ -407,6 +407,7 @@ public class BudgetGrpAcctGenPrc extends ActionHandlerEJB implements BudgetGrpAc
//excpMsg = itme.getMessage(); //excpMsg = itme.getMessage();
//System.out.println("Exception in...."+e.getMessage()); //System.out.println("Exception in...."+e.getMessage());
itme.printStackTrace(); itme.printStackTrace();
throw itme; //added by manish mhatre on 06-aug-2019
} }
catch(Exception e) catch(Exception e)
{ {
...@@ -416,6 +417,7 @@ public class BudgetGrpAcctGenPrc extends ActionHandlerEJB implements BudgetGrpAc ...@@ -416,6 +417,7 @@ public class BudgetGrpAcctGenPrc extends ActionHandlerEJB implements BudgetGrpAc
//excpMsg = e.getMessage(); //excpMsg = e.getMessage();
//System.out.println("Exception in...."+e.getMessage()); //System.out.println("Exception in...."+e.getMessage());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} }
finally finally
{ {
......
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