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
catch(Exception e)
{
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;
}
......@@ -586,7 +587,8 @@ public class BankIC extends ValidatorEJB implements BankICRemote, BankICLocal
catch(Exception e)
{
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;
}
......
......@@ -145,6 +145,7 @@ conn = getConnection();
e.printStackTrace();
errCode = "VALEXCEP";
errString = getErrorString( "", errCode, userId );
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
finally
{
......@@ -412,6 +413,7 @@ conn = getConnection();
catch(SQLException sqle)
{
System.out.println("Exception sqle ::"+ sqle.getMessage());
throw new ITMException(sqle); //added by manish mhatre on 06-aug-2019
}
catch(Exception e)
{
......@@ -447,7 +449,7 @@ conn = getConnection();
}
return valueXmlString.toString();
}//END OF ITEMCHANGE
private String getCurrdateAppFormat()
private String getCurrdateAppFormat() throws ITMException
{
String s = "";
// GenericUtility genericUtility = GenericUtility.getInstance();
......@@ -465,6 +467,7 @@ conn = getConnection();
catch(Exception exception)
{
System.out.println("Exception in getCurrdateAppFormat " + exception.getMessage());
throw new ITMException(exception); //added by manish mhatre on 06-aug-2019
}
return s;
}
......
......@@ -71,6 +71,7 @@ public class BankReco extends ValidatorEJB implements BankRecoLocal,BankRecoRemo
{
System.out.println("Exception :BankRecoItmChngEJB :itemChanged(String,String) :==>\n"+e.getMessage());
valueXmlString = genericUtility.createErrorString(e);
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
return valueXmlString.toString();
}
......@@ -112,6 +113,7 @@ conn = getConnection();
catch(Exception e)
{
System.out.println("Exception in BankRecoItmChngEJB.java occured");
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
finally
{
......
......@@ -202,7 +202,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
}
} catch (Exception e) {
e.printStackTrace();
errString = e.getMessage();
// errString = e.getMessage(); //commented by manish mhatre on 06-aug-2019
try {
conn.rollback();
} catch (Exception d) {
......@@ -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;
......@@ -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());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
catch(Exception ex)
{
System.out.println("Exception In getDBRowCount method of InterCompReconcile Class : "+ex.getMessage());
ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
}finally{
try{
......@@ -600,6 +602,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
throw new SQLException("Connection passed to InterCompReconcile.getDBRowCount() method is null");
} catch (SQLException e) {
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
}
return count;
......@@ -689,10 +692,12 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
catch(SQLException e) {
System.out.println("SQL Exception In getXMLTransData method of BankRecoWizIC Class : "+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
catch(Exception ex) {
System.out.println("Exception In getXMLTransData method of BankRecoWizIC Class : "+ex.getMessage());
ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
} finally {
try {
if(conn != null) {
......@@ -2531,6 +2536,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
catch(Exception e1){
e1.printStackTrace();
}
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
catch(Exception ex) {
System.out.println("Exception In getXMLTransData method of BankRecoWizIC Class : "+ex.getMessage());
......@@ -2544,6 +2550,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
e1.printStackTrace();
}
ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
} finally {
try{
if(pstmt!=null)
......@@ -2572,6 +2579,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
throw new SQLException("Connection passed to BankRecoWizIC.getXMLTransData() method is null");
} catch (SQLException e) {
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
}
System.out.println("final valueXmlString in getXMLTransData() method :"+valueXmlString);
......@@ -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;
......@@ -2605,6 +2613,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
System.out.println("@@@@@@@ amount["+amount+"]");
......@@ -2832,6 +2841,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
} catch(Exception e) {
System.out.println("SQL Exception In getXMLTransData method of BankRecoWizIC Class : "+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} finally {
try{
}catch (Exception se) {
......@@ -2874,7 +2884,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
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 tempList = null;
......@@ -2913,11 +2923,12 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
}
catch(Exception e) {
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
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="";
......@@ -3023,6 +3034,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
return valueXmlString;
......@@ -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 ;
......@@ -3056,6 +3068,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
{
System.out.println("Exception in getColumnDescr ");
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
System.out.println("returning String from getColumnDescr " + findValue);
return findValue;
......@@ -4266,10 +4279,12 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
catch(SQLException e) {
System.out.println("SQL Exception In getXMLTransData method of BankRecoWizIC Class : "+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
catch(Exception ex) {
System.out.println("Exception In getXMLTransData method of BankRecoWizIC Class : "+ex.getMessage());
ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
} finally {
try {
if(conn != null) {
......@@ -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("------changes for encoding-----------------");
System.out.println("bankCode-->>["+bankCode+"]");
......@@ -4396,6 +4411,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
catch(Exception e){
System.out.println("Exception in getValuesForPopHelp.............");
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
finally{
try{
......@@ -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="";
PreparedStatement pstmt=null;
......@@ -4499,6 +4515,7 @@ public class BankRecoWizIC extends ValidatorEJB implements BankRecoWizICLocal, B
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
return tranIdList;
......
......@@ -644,12 +644,14 @@ conn = getConnection();
{
errString="VTPRCERR";
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)
{
System.out.println("Exception(insert in to Trace) ::"+insert +exinsert.getMessage());
errString="VTPRCERR";
exinsert.printStackTrace();
throw new ITMException(exinsert); //added by manish mhatre on 06-aug-2019
}
return errString;
}
......
......@@ -218,7 +218,7 @@ public class BankReconPrcIC extends ValidatorEJB
catch(Exception e)
{
e.printStackTrace();
errString = e.getMessage();
//errString = e.getMessage(); //commented by manish mhatre on 06-aug-2019
throw new ITMException(e);
}
finally
......@@ -267,7 +267,7 @@ public class BankReconPrcIC extends ValidatorEJB
return inputVal;
}
private String errorType(Connection conn , String errorCode)
private String errorType(Connection conn , String errorCode) throws ITMException
{
String msgType = "";
PreparedStatement pstmt = null ;
......@@ -290,6 +290,7 @@ public class BankReconPrcIC extends ValidatorEJB
catch(Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
}
finally
{
......
......@@ -73,6 +73,7 @@ public class BankStartReco extends ValidatorEJB implements BankStartRecoLocal,Ba
{
System.out.println("Exception :BankRecoItmChngEJB :itemChanged(String,String) :==>\n"+e.getMessage());
valueXmlString = genericUtility.createErrorString(e);
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
return valueXmlString.toString();
}
......@@ -116,6 +117,7 @@ conn = getConnection();
catch(Exception e)
{
System.out.println("Exception in BankRecoItmChngEJB.java occured");
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
finally
{
......
......@@ -58,6 +58,7 @@ public class BlockCctrActive extends ValidatorEJB implements BlockCctrActiveLoca
System.out
.println("Exception : CrlimitValid : wfValData(String xmlString) : ==>\n"
+ e.getMessage());
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
return (errString);
}
......@@ -238,6 +239,7 @@ conn = getConnection();
e.printStackTrace();
errCode = "VALEXCEP";
errString = getErrorString("", errCode, userId);
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} finally {
try {
if (conn != null) {
......@@ -291,6 +293,7 @@ conn = getConnection();
+ e.getMessage() + ":");
valueXmlString = genericUtility.createErrorString(e);
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
System.out.println("returning from BlockCctrActive itemChanged");
return (valueXmlString);
......@@ -408,6 +411,7 @@ conn = getConnection();
valueXmlString.delete(0, valueXmlString.length());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
} finally {
try {
if (rs != null) {
......
......@@ -450,7 +450,7 @@ conn = getConnection();
{
System.out.println("Exception ::"+e);
e.printStackTrace();
errString=e.getMessage();
//errString=e.getMessage(); //commented by manish mhatre on 06-aug-2019
throw new ITMException(e);
}
finally
......@@ -500,6 +500,7 @@ conn = getConnection();
catch(Exception e)
{
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;
}
......
......@@ -280,7 +280,8 @@ conn = getConnection();
catch(Exception e)
{
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
{
......@@ -329,6 +330,7 @@ conn = getConnection();
catch(Exception e)
{
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;
}
......@@ -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;
......@@ -497,11 +499,13 @@ conn = getConnection();
{
System.out.println("SQL Exception In getDBRowCount method of BudgetGroupAcct Class : "+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
catch(Exception ex)
{
System.out.println("Exception In getDBRowCount method of BudgetGroupAcct Class : "+ex.getMessage());
ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
}finally{
try{
......@@ -523,6 +527,7 @@ conn = getConnection();
throw new SQLException("Connection passed to BudgetGroupAcct.getDBRowCount() method is null");
} catch (SQLException e) {
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
}
......@@ -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;
......@@ -556,11 +561,13 @@ conn = getConnection();
{
System.out.println("SQL Exception In getNameOrDescrForCode method of BudgetGroupAcct Class : "+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
catch(Exception ex)
{
System.out.println("Exception In getNameOrDescrForCode method of BudgetGroupAcct Class : "+ex.getMessage());
ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
}finally{
try{
......@@ -582,6 +589,7 @@ conn = getConnection();
throw new SQLException("Connection passed to BudgetGroupAcct.getNameOrDescrForCode() method is null");
} catch (SQLException e) {
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
}
......
......@@ -269,7 +269,8 @@ conn = getConnection();
catch(Exception e)
{
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
{
......@@ -318,6 +319,7 @@ conn = getConnection();
catch(Exception e)
{
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;
}
......@@ -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;
......@@ -534,11 +536,13 @@ conn = getConnection();
{
System.out.println("SQL Exception In getDBRowCount method of BudgetGroupAcctAmd Class : "+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
catch(Exception ex)
{
System.out.println("Exception In getDBRowCount method of BudgetGroupAcctAmd Class : "+ex.getMessage());
ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
}finally{
try{
......@@ -560,6 +564,7 @@ conn = getConnection();
throw new SQLException("Connection passed to BudgetGroupAcctAmd.getDBRowCount() method is null");
} catch (SQLException e) {
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
}
......@@ -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;
......@@ -593,11 +598,13 @@ conn = getConnection();
{
System.out.println("SQL Exception In getNameOrDescrForCode method of BudgetGroupAcctAmd Class : "+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
catch(Exception ex)
{
System.out.println("Exception In getNameOrDescrForCode method of BudgetGroupAcctAmd Class : "+ex.getMessage());
ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
}finally{
try{
......@@ -619,6 +626,7 @@ conn = getConnection();
throw new SQLException("Connection passed to BudgetGroupAcctAmd.getNameOrDescrForCode() method is null");
} catch (SQLException e) {
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
System.out.println("Exception :BudgetGroupAcctAmdConfirm :actionHandler():" + e.getMessage() + ":");
retString = genericUtility.createErrorString(e);
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
return retString;
......@@ -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();
{
e1.printStackTrace();
}
throw new ITMException(se); //added by manish mhatre on 06-aug-2019
}
catch(Exception e)
{
......@@ -381,13 +383,13 @@ conn = getConnection();
{
System.out.println(e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
return errString;
}
private java.sql.Timestamp getCurrdateAppFormat()
private java.sql.Timestamp getCurrdateAppFormat() throws ITMException
{
// GenericUtility genericUtility = GenericUtility.getInstance();
Timestamp timestamp = null;
......@@ -403,6 +405,7 @@ conn = getConnection();
{
System.out.println("Exception in [BudgetGroupAcctAmdConfirm] getCurrdateAppFormat " + exception.getMessage());
exception.printStackTrace();
throw new ITMException(exception); //added by manish mhatre on 06-aug-2019
}
return timestamp;
}
......
......@@ -34,13 +34,14 @@ public class BudgetGroupAcctConfirm extends ActionHandlerEJB implements BudgetG
System.out.println("Exception :BudgetGroupAcctConfirm :actionHandler():" + e.getMessage() + ":");
retString = genericUtility.createErrorString(e);
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
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 ------------- ");
......@@ -102,7 +103,7 @@ conn = getConnection();
}
e.printStackTrace();
System.out.println("Exception ::"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
finally
{
......@@ -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------------");
String loginEmpCode ="",sql;
......@@ -167,6 +168,7 @@ conn = getConnection();
{
e1.printStackTrace();
}
throw new ITMException(se); //added by manish mhatre on 06-aug-2019
}
catch(Exception e)
{
......@@ -179,6 +181,7 @@ conn = getConnection();
e1.printStackTrace();
}
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
try
{
......@@ -193,12 +196,12 @@ conn = getConnection();
{
System.out.println(e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
return count;
}
private java.sql.Timestamp getCurrdateAppFormat()
private java.sql.Timestamp getCurrdateAppFormat() throws ITMException
{
// GenericUtility genericUtility = GenericUtility.getInstance();
Timestamp timestamp = null;
......@@ -214,6 +217,7 @@ conn = getConnection();
{
System.out.println("Exception in [BudgetGroupAcctConfirm] getCurrdateAppFormat " + exception.getMessage());
exception.printStackTrace();
throw new ITMException(exception); //added by manish mhatre on 06-aug-2019
}
return timestamp;
}
......
......@@ -280,7 +280,8 @@ conn = getConnection();
catch(Exception e)
{
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
{
......@@ -329,6 +330,7 @@ conn = getConnection();
catch(Exception e)
{
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;
}
......@@ -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;
......@@ -497,11 +499,13 @@ conn = getConnection();
{
System.out.println("SQL Exception In getDBRowCount method of BudgetGroupAcct Class : "+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
catch(Exception ex)
{
System.out.println("Exception In getDBRowCount method of BudgetGroupAcct Class : "+ex.getMessage());
ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
}finally{
try{
......@@ -523,6 +527,7 @@ conn = getConnection();
throw new SQLException("Connection passed to BudgetGroupAcct.getDBRowCount() method is null");
} catch (SQLException e) {
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
}
......@@ -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 = "";
......@@ -556,11 +561,13 @@ conn = getConnection();
{
System.out.println("SQL Exception In getNameOrDescrForCode method of BudgetGroupAcct Class : "+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
catch(Exception ex)
{
System.out.println("Exception In getNameOrDescrForCode method of BudgetGroupAcct Class : "+ex.getMessage());
ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
}finally{
try{
......@@ -582,6 +589,7 @@ conn = getConnection();
throw new SQLException("Connection passed to BudgetGroupAcct.getNameOrDescrForCode() method is null");
} catch (SQLException e) {
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
}
......
......@@ -272,7 +272,8 @@ conn = getConnection();
catch(Exception e)
{
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
{
......@@ -321,6 +322,7 @@ conn = getConnection();
catch(Exception e)
{
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;
}
......@@ -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;
......@@ -541,11 +543,13 @@ conn = getConnection();
{
System.out.println("SQL Exception In getDBRowCount method of BudgetGroupAcctAmd Class : "+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
catch(Exception ex)
{
System.out.println("Exception In getDBRowCount method of BudgetGroupAcctAmd Class : "+ex.getMessage());
ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
}finally{
try{
......@@ -567,6 +571,7 @@ conn = getConnection();
throw new SQLException("Connection passed to BudgetGroupAcctAmd.getDBRowCount() method is null");
} catch (SQLException e) {
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
}
......@@ -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 = "";
......@@ -600,11 +605,13 @@ conn = getConnection();
{
System.out.println("SQL Exception In getNameOrDescrForCode method of BudgetGroupAcctAmd Class : "+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
catch(Exception ex)
{
System.out.println("Exception In getNameOrDescrForCode method of BudgetGroupAcctAmd Class : "+ex.getMessage());
ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
}finally{
try{
......@@ -626,6 +633,7 @@ conn = getConnection();
throw new SQLException("Connection passed to BudgetGroupAcctAmd.getNameOrDescrForCode() method is null");
} catch (SQLException e) {
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
System.out.println("Exception :BudgetGroupAcctAmdConfirm :actionHandler():" + e.getMessage() + ":");
retString = genericUtility.createErrorString(e);
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
return retString;
......@@ -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();
{
e1.printStackTrace();
}
throw new ITMException(se); //added by manish mhatre on 06-aug-2019
}
catch(Exception e)
{
......@@ -383,7 +385,7 @@ conn = getConnection();
{
System.out.println(e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
return errString;
......@@ -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();
{
e1.printStackTrace();
}
throw new ITMException(se); //added by manish mhatre on 06-aug-2019
}
catch(Exception e)
{
......@@ -668,13 +671,13 @@ conn = getConnection();
{
System.out.println(e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
return errString;
}
private java.sql.Timestamp getCurrdateAppFormat()
private java.sql.Timestamp getCurrdateAppFormat() throws ITMException
{
// GenericUtility genericUtility = GenericUtility.getInstance();
Timestamp timestamp = null;
......@@ -690,6 +693,7 @@ conn = getConnection();
{
System.out.println("Exception in [BudgetGroupAcctAmdConfirm] getCurrdateAppFormat " + exception.getMessage());
exception.printStackTrace();
throw new ITMException(exception); //added by manish mhatre on 06-aug-2019
}
return timestamp;
}
......
......@@ -34,13 +34,14 @@ public class BudgetGroupAlloConfirm extends ActionHandlerEJB implements BudgetG
System.out.println("Exception :BudgetGroupAcctConfirm :actionHandler():" + e.getMessage() + ":");
retString = genericUtility.createErrorString(e);
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
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 ------------- ");
......@@ -102,7 +103,7 @@ conn = getConnection();
}
e.printStackTrace();
System.out.println("Exception ::"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
finally
{
......@@ -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------------");
String loginEmpCode ="",sql;
......@@ -167,6 +168,7 @@ conn = getConnection();
{
e1.printStackTrace();
}
throw new ITMException(se); //added by manish mhatre on 06-aug-2019
}
catch(Exception e)
{
......@@ -179,6 +181,7 @@ conn = getConnection();
e1.printStackTrace();
}
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
try
{
......@@ -193,12 +196,13 @@ conn = getConnection();
{
System.out.println(e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
return count;
}
private java.sql.Timestamp getCurrdateAppFormat()
private java.sql.Timestamp getCurrdateAppFormat() throws ITMException
{
// GenericUtility genericUtility = GenericUtility.getInstance();
Timestamp timestamp = null;
......@@ -214,6 +218,7 @@ conn = getConnection();
{
System.out.println("Exception in [BudgetGroupAcctConfirm] getCurrdateAppFormat " + exception.getMessage());
exception.printStackTrace();
throw new ITMException(exception); //added by manish mhatre on 06-aug-2019
}
return timestamp;
}
......
......@@ -407,6 +407,7 @@ public class BudgetGrpAcctGenPrc extends ActionHandlerEJB implements BudgetGrpAc
//excpMsg = itme.getMessage();
//System.out.println("Exception in...."+e.getMessage());
itme.printStackTrace();
throw itme; //added by manish mhatre on 06-aug-2019
}
catch(Exception e)
{
......@@ -416,6 +417,7 @@ public class BudgetGrpAcctGenPrc extends ActionHandlerEJB implements BudgetGrpAc
//excpMsg = e.getMessage();
//System.out.println("Exception in...."+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
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