Commit c7d07054 authored by mmhatre's avatar mmhatre

add ITM Exception

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@204984 ce508802-f39f-4f6c-b175-0d175dae99d5
parent fafa2688
......@@ -761,6 +761,7 @@ public class RPTValAprvWF
System.out.println("Exception while rollbacking transaction....");
e1.printStackTrace();
}
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
{
......@@ -897,6 +898,7 @@ public class RPTValAprvWF
System.out.println("Exception while rollbacking transaction....");
e1.printStackTrace();
}
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
......@@ -1016,6 +1018,7 @@ public class RPTValAprvWF
System.out.println("Exception while rollbacking transaction....");
e1.printStackTrace();
}
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
......@@ -1140,6 +1143,7 @@ public class RPTValAprvWF
System.out.println("Exception while rollbacking transaction....");
e1.printStackTrace();
}
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
......@@ -1284,6 +1288,7 @@ public class RPTValAprvWF
{
e.printStackTrace();
System.out.println("Exception : getUserId ==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
......
......@@ -56,6 +56,7 @@ public class RecPayTrfIC extends ValidatorEJB implements RecPayTrfICLocal,RecPay
catch(Exception e)
{
System.out.println("Exception : [RecPayTrfIC][itemChanged( String, String )] :==>\n" + e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return valueXmlString;
}
......@@ -815,7 +816,7 @@ public class RecPayTrfIC extends ValidatorEJB implements RecPayTrfICLocal,RecPay
catch(Exception e)
{
e.printStackTrace();
errString = e.getMessage();
//errString = e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e);
}
finally
......@@ -973,7 +974,7 @@ public class RecPayTrfIC extends ValidatorEJB implements RecPayTrfICLocal,RecPay
}
return retVal;
}
private String errorType(Connection conn , String errorCode)
private String errorType(Connection conn , String errorCode) throws ITMException
{
String msgType = "";
PreparedStatement pstmt = null ;
......@@ -996,6 +997,7 @@ public class RecPayTrfIC extends ValidatorEJB implements RecPayTrfICLocal,RecPay
catch(Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 09-aug-2019
}
finally
{
......
......@@ -661,14 +661,15 @@ public class RecPayXfrPrc extends ProcessEJB implements RecPayXfrPrcLocal,RecPay
d.printStackTrace();
errString = d.getMessage();
throw new ITMException(d);
}
}
throw new ITMException(se); //added by manish mhatre on 09-aug-2019
}
catch (Exception e)
{
System.out.println("Exception : RecPayXfrPrc =>: Process"+ e.toString());
e.printStackTrace();
System.out.println("Exception : RecPayXfrPrc(String xmlString2, String xmlString2, String windowName, String xtraParams):"+ e.getMessage() + ":");
errString = e.getMessage();
//errString = e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e);
}
finally
......
......@@ -2378,7 +2378,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
catch (Exception e)
{
e.printStackTrace();
errString = e.getMessage();
//errString = e.getMessage(); //commented by manish mhatre on 08-aug-2019
throw new ITMException(e);
}
finally
......@@ -2820,6 +2820,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
{
System.out.println("Exception : [MiscVal][itemChanged( String, String )] :==>\n" +
e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return valueXmlString;
}
......@@ -2843,6 +2844,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
{
System.out.println("Exception : [MiscVal][itemChanged( String, String )] :==>\n" +
e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return valueXmlString;
}
......@@ -4720,7 +4722,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
return valueXmlString.toString();
}
private String errorType(Connection conn, String errorCode)
private String errorType(Connection conn, String errorCode) throws ITMException
{
String msgType = "";
PreparedStatement pstmt = null;
......@@ -4756,6 +4758,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
{
e.printStackTrace();
}
throw new ITMException(ex); //added by manish mhatre on 09-aug-2019
}
finally
{
......@@ -4999,7 +5002,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
return exchRate;
} */
private String checkBadDebtAmt(int value, Connection conn, Document dom)
private String checkBadDebtAmt(int value, Connection conn, Document dom) throws ITMException
{
PreparedStatement pstmt = null;
ResultSet rs = null;
......@@ -5091,6 +5094,7 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
catch (Exception e)
{
System.out.println(e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return errCode;
......
......@@ -70,10 +70,12 @@ public class ReceiptAutoConfPOS extends ValidatorEJB implements ReceiptAutoConfP
{
// TODO Auto-generated catch block
e2.printStackTrace();
throw new ITMException(e2); //added by manish mhatre on 09-aug-2019
} catch (Exception e2)
{
// TODO Auto-generated catch block
e2.printStackTrace();
throw new ITMException(e2); //added by manish mhatre on 09-aug-2019
}
E12GenericUtility genericUtility = new E12GenericUtility();
// GenericUtility genericUtility = GenericUtility.getInstance();
......@@ -106,6 +108,7 @@ public class ReceiptAutoConfPOS extends ValidatorEJB implements ReceiptAutoConfP
{
// TODO Auto-generated catch block
e1.printStackTrace();
throw new ITMException(e1); //added by manish mhatre on 09-aug-2019
}
if (retString.contains("VTCICONF3"))
......@@ -240,6 +243,7 @@ public class ReceiptAutoConfPOS extends ValidatorEJB implements ReceiptAutoConfP
{
// TODO Auto-generated catch block
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return errString;
}
......@@ -648,8 +652,9 @@ public class ReceiptAutoConfPOS extends ValidatorEJB implements ReceiptAutoConfP
* Initialise and generate log file
* @param fileName
* @return String
* @throws ITMException
*/
private String intializingLog(String fileName)
private String intializingLog(String fileName) throws ITMException
{
String log="intializingLog_Failed";
// String strToWrite = "";
......@@ -684,6 +689,7 @@ public class ReceiptAutoConfPOS extends ValidatorEJB implements ReceiptAutoConfP
{
System.out.println("Exception []::"+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
log ="intializingLog_Successesfull";
......
......@@ -676,7 +676,8 @@ public class ReceiptDishonourIC extends ValidatorEJB implements ReceiptDishonour
catch (Exception e)
{
System.out.println(":::" + getClass().getSimpleName() + "::" + e.getMessage());
e.getMessage();
//e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return retString;
}
......
......@@ -56,6 +56,7 @@ public class ReceivablesTransIC extends ValidatorEJB implements ReceivablesTrans
catch(Exception e)
{
System.out.println("Exception : [ReceivablesTransPrcICEJB][itemChanged] :==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return valueXmlString;
}
......@@ -132,6 +133,7 @@ conn = getConnection();
{
System.out.println("Exception ::"+ e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
{
......@@ -162,7 +164,7 @@ conn = getConnection();
return valueXmlString.toString();
}//END OF ITEMCHANGE
private String getCurrdateAppFormat()
private String getCurrdateAppFormat() throws ITMException
{
String currAppdate ="";
java.sql.Timestamp currDate = null;
......@@ -186,6 +188,7 @@ conn = getConnection();
catch(Exception e)
{
System.out.println("Exception in getCurrdateAppFormat"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return (currAppdate);
}
......
......@@ -130,7 +130,7 @@ public class ReceivablesTransPrc extends ProcessEJB implements ReceivablesTransP
{
System.out.println("Exception :ReceivablesTransPrcEJB :getData(String xmlString, String xmlString2, String windowName, String xtraParams):" + e.getMessage() + ":");
rtrStr = e.getMessage();
//rtrStr = e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e);
}
......@@ -659,6 +659,7 @@ conn = getConnection();
{
System.out.println(e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
try
{
......@@ -680,7 +681,8 @@ conn = getConnection();
{
System.out.println("Exception :InvInsurancePrcEJB :process(String xmlString, String xmlString2, String windowName, String xtraParams):" + e.getMessage() + ":");
e.printStackTrace();
retStr = e.getMessage();
//retStr = e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return retStr;
}//END OF PROCESS (1)
......@@ -1113,7 +1115,8 @@ conn = getConnection();
writeLog(filePtr,"Problem in Process "+sql,true);
System.out.println("Exception in InvInsurancePrcEJB..."+e.getMessage());
e.printStackTrace();
errString = e.getMessage();
//errString = e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
......@@ -1698,7 +1701,7 @@ conn = getConnection();
}
return retString;
}//end of confirmReceipt
private static void writeLog(File f,String ex,boolean flag)
private static void writeLog(File f,String ex,boolean flag) throws ITMException
{
try
{
......@@ -1706,7 +1709,9 @@ conn = getConnection();
pw.println(ex);
pw.close();
}
catch(Exception exWm){exWm.printStackTrace();}
catch(Exception exWm){exWm.printStackTrace();
throw new ITMException(exWm); //added by manish mhatre on 09-aug-2019
}
}
}
\ No newline at end of file
......@@ -16,7 +16,7 @@ public class ReconcilePopHelpBean {
String xmlStringPopHelp="";
public String getPophelp(String sundryType){
public String getPophelp(String sundryType) throws ITMException{
try{
System.out.println("In getPophelp222--->>["+sundryType+"]");
......@@ -32,12 +32,13 @@ public String getPophelp(String sundryType){
}
catch(Exception e){
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return xmlStringPopHelp;
}
public String getPophelp(String sundryType,String keyString){
public String getPophelp(String sundryType,String keyString) throws ITMException{
try{
System.out.println("In getPophelp--->>["+sundryType+"]");
......@@ -54,13 +55,14 @@ public String getPophelp(String sundryType,String keyString){
}
catch(Exception e){
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return xmlStringPopHelp;
}
public String getPophelpForBankCode(String bankCode,String keyString){
public String getPophelpForBankCode(String bankCode,String keyString) throws ITMException{
try{
System.out.println("In getPophelp--->>["+bankCode+"]");
......@@ -77,6 +79,7 @@ public String getPophelpForBankCode(String bankCode,String keyString){
}
catch(Exception e){
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return xmlStringPopHelp;
}
......@@ -160,7 +163,7 @@ public static String getXSL(String xslFileName) throws IOException, ITMException
}
return xslString;
}
private static String readFile(String xslFilePath) throws IOException
private static String readFile(String xslFilePath) throws IOException, ITMException
{
String xslString ="";
StringBuilder xslStringBuilder = new StringBuilder();;
......@@ -183,6 +186,7 @@ private static String readFile(String xslFilePath) throws IOException
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
{
......
......@@ -55,6 +55,7 @@ public class RelPartyDefIC extends ValidatorEJB implements RelPartyDefICLocal, R
{
System.out.println("Inside Exception Inside RelPartyDefIC.itemChanged() ["+e.getMessage()+"]");
errString = genericUtility.createErrorString(e);
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
System.out.println ( "returning from RelPartyDefIC itemChanged" );
return errString;
......@@ -427,6 +428,7 @@ conn = getConnection();
System.out.println("Inside Exception RelPartyDefIC.itemChanged()["+e.getMessage()+"]");
valueXmlString = valueXmlString.append( genericUtility.createErrorString( e ) );
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
{
......@@ -1195,7 +1197,7 @@ conn = getConnection();
catch(Exception e)
{
e.printStackTrace();
errString = e.getMessage();
//errString = e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e);
}
finally
......@@ -1230,7 +1232,7 @@ conn = getConnection();
}
private boolean isDulplicateFrmDom(Document dom2, String tranCat,
String lineNo) {
String lineNo) throws ITMException {
NodeList parentList = null;
NodeList childList = null;
......@@ -1296,6 +1298,7 @@ conn = getConnection();
}catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
{
......@@ -1331,7 +1334,7 @@ conn = getConnection();
return input;
}
private String errorType(Connection conn , String errorCode)
private String errorType(Connection conn , String errorCode) throws ITMException
{
String msgType = "";
PreparedStatement pstmt = null ;
......@@ -1350,6 +1353,7 @@ conn = getConnection();
catch(Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 09-aug-2019
}
finally
{
......
......@@ -57,6 +57,7 @@ public class RelaPartyApplIC extends ValidatorEJB implements RelaPartyApplICRemo
catch(Exception e)
{
System.out.println("Exception : RelaPartyApplIC() : wfValData(String xmlString) : ==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return (errString);
}
......@@ -363,7 +364,7 @@ conn = getConnection();
{
System.out.println("Exception ::"+e);
e.printStackTrace();
errString = e.getMessage();
//errString = e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e);
}
finally
......@@ -421,6 +422,7 @@ conn = getConnection();
catch(Exception e)
{
System.out.println("Exception : [RelaPartyApplIC][itemChanged] :==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return valueXmlString;
}
......@@ -537,6 +539,7 @@ conn = getConnection();
{
System.out.println("RelaPartyApplIC Exception ::"+ e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
{
......@@ -567,7 +570,7 @@ conn = getConnection();
return valueXmlString.toString();
}
private String errorType(Connection conn, String errorCode)
private String errorType(Connection conn, String errorCode) throws ITMException
{
String msgType = "";
PreparedStatement pstmt = null;
......@@ -603,6 +606,7 @@ conn = getConnection();
{
e.printStackTrace();
}
throw new ITMException(ex); //added by manish mhatre on 09-aug-2019
}
finally
{
......
......@@ -1565,6 +1565,7 @@ public class RetainerContractIC extends ValidatorEJB implements RetainerContract
System.out.println("------ItemChanged::valueXmlString["+valueXmlString+"]");
}catch(Exception e)
{
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
//Add by Ajay on 02/05/18:START
finally {
......@@ -1590,7 +1591,7 @@ public class RetainerContractIC extends ValidatorEJB implements RetainerContract
return valueXmlString.toString();
}
private String isAcctDept(String acctCode, String deptCode, String tranSer, Connection conn)
private String isAcctDept(String acctCode, String deptCode, String tranSer, Connection conn) throws ITMException
{
String errCode = "", sql = "", acctSpec = "";
int cnt = 0;
......@@ -1667,12 +1668,13 @@ public class RetainerContractIC extends ValidatorEJB implements RetainerContract
{
System.out.println("SQLException :RetainerContractReleasePrc :getData(Document dom, Document dom2, String winName, String xtraParams):" + se.getMessage() + ":");
se.printStackTrace();
throw new ITMException(se); //added by manish mhatre on 09-aug-2019
} catch (Exception e)
{
System.out.println("Exception :RetainerContractReleasePrc :getData(Document dom, Document dom2, String winName, String xtraParams):" + e.getMessage() + ":");
//this.errString = genericUtility.createErrorString(e);
e.printStackTrace();
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return errCode;
}
......
......@@ -43,6 +43,7 @@ public class SalesBudgetCustConf extends ActionHandlerEJB implements
+ e.getMessage() + ":");
retString = GenericUtilityObj.createErrorString(e);
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return retString;
......
......@@ -560,6 +560,7 @@ public class SalesBudgetCustIC extends ValidatorEJB implements SalesBudgetCustIC
catch(Exception e)
{
System.out.println("Exception : [SalesBudgetCustIC ][itemChanged(String,String)] :==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return valueXmlString;
}
......@@ -846,7 +847,7 @@ conn = getConnection();
return valueXmlString.toString();
}
protected int getDBRowCount(Connection conn, String table_name, String whrCondCol, String whrCondVal)
protected int getDBRowCount(Connection conn, String table_name, String whrCondCol, String whrCondVal) throws ITMException
{
int count=-1;
......@@ -871,11 +872,13 @@ conn = getConnection();
{
System.out.println("SQL Exception In getDBRowCount method of SalesBudgetCustIC Class : "+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
catch(Exception ex)
{
System.out.println("Exception In getDBRowCount method of SalesBudgetCustIC Class : "+ex.getMessage());
ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 09-aug-2019
}finally{
try{
......@@ -896,14 +899,15 @@ conn = getConnection();
try {
throw new SQLException("Connection passed to SalesBudgetCustIC.getDBRowCount() method ");
} catch (SQLException e) {
e.printStackTrace();
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
}
return count;
}
private String errorType( Connection conn , String errorCode )
private String errorType( Connection conn , String errorCode ) throws ITMException
{
String msgType = "";
PreparedStatement pstmt = null ;
......@@ -923,6 +927,7 @@ conn = getConnection();
catch (Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 09-aug-2019
}
finally
{
......@@ -954,7 +959,7 @@ conn = getConnection();
}
return input.trim();
}
private String getColumnDescr(Connection conn, String columnName ,String tableName, String columnName2, String value)
private String getColumnDescr(Connection conn, String columnName ,String tableName, String columnName2, String value) throws ITMException
{
PreparedStatement pstmt = null ;
ResultSet rs = null ;
......@@ -979,6 +984,7 @@ conn = getConnection();
{
System.out.println("Exception in getColumnDescr ");
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
System.out.println("returning String from getColumnDescr " + findValue);
return findValue;
......
......@@ -119,6 +119,7 @@ public class SalesBudgetCustWizBean
{
e.printStackTrace();
valueXmlString = valueXmlString.append(genericUtility.createErrorString(e));
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
{
......@@ -223,6 +224,7 @@ public class SalesBudgetCustWizBean
{
e.printStackTrace();
valueXmlString = valueXmlString.append(genericUtility.createErrorString(e));
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
{
......@@ -326,6 +328,7 @@ public class SalesBudgetCustWizBean
{
e.printStackTrace();
valueXmlString = valueXmlString.append(genericUtility.createErrorString(e));
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
{
......@@ -429,6 +432,7 @@ public class SalesBudgetCustWizBean
{
e.printStackTrace();
valueXmlString = valueXmlString.append(genericUtility.createErrorString(e));
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
{
......@@ -531,6 +535,7 @@ public class SalesBudgetCustWizBean
{
e.printStackTrace();
valueXmlString = valueXmlString.append(genericUtility.createErrorString(e));
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
{
......@@ -607,7 +612,7 @@ public class SalesBudgetCustWizBean
}
// added by rupali on 16/08/8 foe multi-tenancy related changes [start]
private Connection getConnection()
private Connection getConnection() throws ITMException
{
Connection conn = null;
ConnDriver connDriver = new ConnDriver();
......@@ -626,6 +631,7 @@ public class SalesBudgetCustWizBean
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return conn;
}
......
......@@ -52,6 +52,7 @@ public class SalesBudgetCustWizEJB extends ValidatorEJB
catch(Exception e)
{
System.out.println("Exception : [ExpenseProcessItemChange][wfValData(String xmlString)] : ==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return (errString);
}
......@@ -327,6 +328,7 @@ public class SalesBudgetCustWizEJB extends ValidatorEJB
{
System.out.println("wfValdata::Exception:" + getClass().getSimpleName() + ":::" + e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
{
......@@ -405,7 +407,8 @@ public class SalesBudgetCustWizEJB extends ValidatorEJB
errStringXml.append("</Errors></Root>\r\n");
errString = errStringXml.toString();
System.out.println("retString ...DIPAK......."+errString);
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
System.out.println ( "returning from WsfaZuviusDsrWizEJB defaultDataWiz" );
return errString;
......@@ -738,6 +741,7 @@ public class SalesBudgetCustWizEJB extends ValidatorEJB
}
catch(Exception e){
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
{
......
......@@ -264,6 +264,7 @@ public class SalesForecastWizEJB extends ValidatorEJB
}
errStringXml.append("</Errors></Root>\r\n");
errString = errStringXml.toString();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return errString;
}
......@@ -277,6 +278,7 @@ public class SalesForecastWizEJB extends ValidatorEJB
}
catch(Exception e){
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return returnStr;
}
......@@ -455,6 +457,7 @@ public class SalesForecastWizEJB extends ValidatorEJB
{
System.out.println("Exception :SalesForecastWizEJB :defaultDataWiz(Document,String):" + e.getMessage() + ":" );
valueXmlString = valueXmlString.append( genericUtility.createErrorString( e ) );
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
{
......@@ -486,7 +489,7 @@ public class SalesForecastWizEJB extends ValidatorEJB
return valueXmlString.toString();
}
private String getDetailData(Connection connectionObject,String tranId,int currentFormNo) throws SQLException
private String getDetailData(Connection connectionObject,String tranId,int currentFormNo) throws SQLException, ITMException
{
int count = 1;
PreparedStatement pstmt = null;
......@@ -517,6 +520,7 @@ public class SalesForecastWizEJB extends ValidatorEJB
catch (SQLException e)
{
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
{
......
......@@ -501,7 +501,7 @@ conn = getConnection();
}//end of switch
} catch (Exception e) {
e.printStackTrace();
errString = e.getMessage();
//errString = e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e);
} finally {
try {
......@@ -535,6 +535,7 @@ conn = getConnection();
catch(Exception e)
{
System.out.println("Exception : [SalesPersonBank ][itemChanged(String,String)] :==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return valueXmlString;
}
......
......@@ -35,12 +35,13 @@ public class SalesPersonBankConf extends ActionHandlerEJB implements SalesPerson
System.out.println("Exception :SalesPersonBankConf :confirm():" + e.getMessage() + ":");
retString = genericUtility.createErrorString(e);
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return retString;
}
private String confirmSPBank(String tranId,String xtraParams,String forcedFlag)
private String confirmSPBank(String tranId,String xtraParams,String forcedFlag) throws ITMException
{
System.out.println("---------Class : SalesPersonBankConf-->> confirm method called-----------");
String salespers = null;
......@@ -142,6 +143,7 @@ public class SalesPersonBankConf extends ActionHandlerEJB implements SalesPerson
catch(Exception e){
System.out.println("Exception : Occure during rollback........");e.printStackTrace();
}
throw new ITMException(se); //added by manish mhatre on 09-aug-2019
}
catch(Exception e)
{
......@@ -154,6 +156,7 @@ public class SalesPersonBankConf extends ActionHandlerEJB implements SalesPerson
}
e.printStackTrace();
System.out.println("Exception Class [SalesPersonBankConf]::"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
......
......@@ -376,7 +376,7 @@ conn = getConnection();
{
System.out.println("Exception ::"+e);
e.printStackTrace();
errString=e.getMessage();
//errString=e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e);
}
finally
......@@ -424,6 +424,7 @@ conn = getConnection();
catch(Exception e)
{
System.out.println("Exception : [SiteLoanParty ][itemChanged(String,String)] :==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return valueXmlString;
}
......
......@@ -285,7 +285,7 @@ conn = getConnection();
{
System.out.println("Exception ::"+e);
e.printStackTrace();
errString=e.getMessage();
//errString=e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e);
}
finally
......@@ -333,6 +333,7 @@ conn = getConnection();
catch(Exception e)
{
System.out.println("Exception : [SiteSalesPerson ][itemChanged(String,String)] :==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return valueXmlString;
}
......
......@@ -417,7 +417,7 @@ conn = getConnection();
{
System.out.println("Exception ::"+e);
e.printStackTrace();
errString=e.getMessage();
//errString=e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e);
}
finally
......@@ -461,6 +461,7 @@ conn = getConnection();
catch(Exception e)
{
System.out.println("Exception : [TrainingEJB][itemChanged(String,String)] :==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return valueXmlString;
}
......
......@@ -439,7 +439,7 @@ conn = getConnection();
{
System.out.println("Exception ::"+e);
e.printStackTrace();
errString=e.getMessage();
//errString=e.getMessage(); //commented by manish mhatreon 09-aug-2019
throw new ITMException(e);
}
finally
......@@ -483,6 +483,7 @@ conn = getConnection();
catch(Exception e)
{
System.out.println("Exception : [TrainingEJB][itemChanged(String,String)] :==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return valueXmlString;
}
......
......@@ -97,6 +97,7 @@ public class StockRevaluationAdjIC extends ValidatorEJB implements StockRevaluat
catch(Exception e)
{
System.out.println("Exception : [EpaymentICEJB][itemChanged(String,String)] :==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return valueXmlString;
}
......@@ -228,6 +229,7 @@ conn = getConnection();
{
System.out.println("Exception ::"+ e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
{
......
......@@ -63,7 +63,8 @@ public String process(String xmlString, String xmlString2, String windowName, St
{
System.out.println("Exception :StockRevaluationAdjPrc :process " + e.getMessage() + ":");
e.printStackTrace();
retStr = e.getMessage();
//retStr = e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return retStr;
......@@ -483,6 +484,7 @@ conn = getConnection();
e.printStackTrace();
isError=true;
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally{
try{
......@@ -505,7 +507,7 @@ conn = getConnection();
return errorString;
}
protected int getDBRowCount(Connection conn, String table_name, String whrCondCol, String whrCondVal)
protected int getDBRowCount(Connection conn, String table_name, String whrCondCol, String whrCondVal) throws ITMException
{
int count=-1;
......@@ -539,6 +541,7 @@ protected int getDBRowCount(Connection conn, String table_name, String whrCondCo
System.out.println("SQL Exception In getDBRowCount method of StockRevaluationAdjPrc Class : "+e.getMessage());
e.printStackTrace();
isError=true;
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
}
......@@ -546,7 +549,7 @@ protected int getDBRowCount(Connection conn, String table_name, String whrCondCo
return count;
}
public int updateStockRateAsPerPriceListRate(Connection conn,Map<String,String> updateStockMap){
public int updateStockRateAsPerPriceListRate(Connection conn,Map<String,String> updateStockMap) throws ITMException{
PreparedStatement pstmt=null;
String sql="";
int count=0;
......@@ -569,6 +572,7 @@ public int updateStockRateAsPerPriceListRate(Connection conn,Map<String,String>
System.out.println("Exception in updateStockRateAsPerPriceListRate----------");
isError=true;
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return count;
......@@ -641,7 +645,7 @@ private String getHeaderXml(Connection conn,String siteCodeL,String unqItemSerL,
}
private String getDetail2Xml(Connection conn,Map<String,String>detail2MapL,int lineNo,double newRate){
private String getDetail2Xml(Connection conn,Map<String,String>detail2MapL,int lineNo,double newRate) throws ITMException{
System.out.println("detail Map---->>["+detail2MapL+"]");
StringBuffer detail2xml=new StringBuffer();
......@@ -714,6 +718,7 @@ private String getDetail2Xml(Connection conn,Map<String,String>detail2MapL,int l
catch(Exception e){
isError=true;
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
......@@ -756,7 +761,7 @@ private double getRecordFromStock(Connection conn,String parameter ,String siteC
return rate;
}
private String getAcctCctrCodeFromStock(Connection conn,String siteCode,String itemCode,String locCodeL,String lotNo,String lotSl)
private String getAcctCctrCodeFromStock(Connection conn,String siteCode,String itemCode,String locCodeL,String lotNo,String lotSl) throws ITMException
{
ResultSet rs=null;
PreparedStatement pstmt=null;
......@@ -788,11 +793,12 @@ private String getAcctCctrCodeFromStock(Connection conn,String siteCode,String i
}
catch(Exception e){
e.printStackTrace();
isError=true;
isError=true;
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return acctCode+":"+cctrCode;
}
private String saveRecordStockRevAdj(Connection conn,String headerXml,String detailXml,String xtraParams, String siteCode)
private String saveRecordStockRevAdj(Connection conn,String headerXml,String detailXml,String xtraParams, String siteCode) throws ITMException
{
String retString="",dbTranID="",xmlString="";
xmlString=headerXml + detailXml +"</Header0></group0></DocumentRoot>";
......@@ -829,6 +835,7 @@ private String saveRecordStockRevAdj(Connection conn,String headerXml,String det
{
isError=true;
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return retString;
}
......
......@@ -805,7 +805,7 @@ conn = getConnection();
System.out.println("Exception ::"+e);
e.printStackTrace();
errString=e.getMessage();
//errString=e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e);
}
......@@ -854,6 +854,7 @@ conn = getConnection();
catch(Exception e)
{
System.out.println("Exception : [StockValAdjTran][itemChanged(String,String)] :==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return valueXmlString;
}
......@@ -1493,7 +1494,7 @@ conn = getConnection();
}
public double getRateFromStock(Connection conn,String siteCode,String itemCode,String itemSer,String locCode,String lotNo,String lotSl){
public double getRateFromStock(Connection conn,String siteCode,String itemCode,String itemSer,String locCode,String lotNo,String lotSl) throws ITMException{
ResultSet rs=null;
PreparedStatement pstmt=null;
String sql="",trackSLife="";
......@@ -1543,6 +1544,7 @@ conn = getConnection();
catch(Exception e){
System.out.println("Exception in updateStockRateAsPerPriceListRate----------");
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return oldRate;
......@@ -1550,7 +1552,7 @@ conn = getConnection();
public double getQuantityFromStock(Connection conn,String siteCode,String itemCode,String locCode,String lotNo,String lotSl){
public double getQuantityFromStock(Connection conn,String siteCode,String itemCode,String locCode,String lotNo,String lotSl) throws ITMException{
ResultSet rs=null;
PreparedStatement pstmt=null;
String sql="";
......@@ -1578,12 +1580,13 @@ conn = getConnection();
catch(Exception e){
System.out.println("Exception in getQuantityFromStock----------");
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return stkquantity;
}
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 ;
......@@ -1609,6 +1612,7 @@ conn = getConnection();
{
System.out.println("Exception in getColumnDescr ");
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
System.out.println("returning String from getColumnDescr " + findValue);
return findValue;
......
......@@ -38,6 +38,7 @@ public class StockValAdjTranConf extends ActionHandlerEJB implements StockValAdj
System.out.println("Exception :StockValAdjTranConf :confirm():" + e.getMessage() + ":");
retString = genericUtility.createErrorString(e);
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return retString;
......@@ -213,7 +214,8 @@ public class StockValAdjTranConf extends ActionHandlerEJB implements StockValAdj
catch(Exception e){
System.out.println("Exception : Occure during rollback........");e.printStackTrace();
}
throw new ITMException(se); //added by manish mhatre on 09-aug-2019
}
catch(Exception e)
{
......@@ -257,7 +259,7 @@ public class StockValAdjTranConf extends ActionHandlerEJB implements StockValAdj
return errString;
}
public int updateStockRateAsPerPriceListRate(Connection conn,Map<String,String> updateStockMap){
public int updateStockRateAsPerPriceListRate(Connection conn,Map<String,String> updateStockMap) throws ITMException{
PreparedStatement pstmt=null;
String sql="";
double rate = 0,oldRate=0;
......@@ -285,6 +287,7 @@ public int updateStockRateAsPerPriceListRate(Connection conn,Map<String,String>
catch(Exception e){
System.out.println("Exception in updateStockRateAsPerPriceListRate----------");
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
}
return count;
......
......@@ -503,7 +503,7 @@ conn = getConnection();
}// end of switch
} catch (Exception e) {
e.printStackTrace();
errString = e.getMessage();
//errString = e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e);
} finally {
try {
......@@ -540,6 +540,7 @@ conn = getConnection();
System.out
.println("Exception : [Stratergic customer bank ][itemChanged(String,String)] :==>\n"
+ e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return valueXmlString;
}
......
......@@ -33,12 +33,13 @@ public class StrgCustBankConf extends ActionHandlerEJB implements StrgCustBankCo
System.out.println("Exception :StrgCustBankConf :confirm():" + e.getMessage() + ":");
retString = genericUtility.createErrorString(e);
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return retString;
}
private String confirmSCBank(String tranId,String xtraParams,String forcedFlag)
private String confirmSCBank(String tranId,String xtraParams,String forcedFlag) throws ITMException
{
System.out.println("---------Class : StrgCustBankConf-->> confirm method called-----------");
String scCode = null;
......@@ -139,6 +140,7 @@ public class StrgCustBankConf extends ActionHandlerEJB implements StrgCustBankCo
catch(Exception e){
System.out.println("Exception : Occure during rollback........");e.printStackTrace();
}
throw new ITMException(se); //added by manish mhatre on 09-aug-2019
}
catch(Exception e)
{
......@@ -151,6 +153,7 @@ public class StrgCustBankConf extends ActionHandlerEJB implements StrgCustBankCo
}
e.printStackTrace();
System.out.println("Exception Class [StrgCustBankConf]::"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
......
......@@ -469,7 +469,7 @@ conn = getConnection();
catch(Exception e)
{
e.printStackTrace();
errString = e.getMessage();
//errString = e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e);
}
finally
......
......@@ -546,7 +546,7 @@ conn = getConnection();
{
isError = true;
e.printStackTrace();
errString = e.getMessage();
//errString = e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e);
}
finally
......@@ -606,7 +606,7 @@ private String checkNull(String input)
}
return input;
}
private Timestamp getCurrdateAppFormat()
private Timestamp getCurrdateAppFormat() throws ITMException
{
Timestamp timestamp = null;
......@@ -623,6 +623,7 @@ private Timestamp getCurrdateAppFormat()
catch(Exception exception)
{
System.out.println("Exception in getCurrdateAppFormat " + exception.getMessage());
throw new ITMException(exception); //added by manish mhatre on 09-aug-2019
}
return timestamp;
}
......
......@@ -64,6 +64,7 @@ public class SundrybalOpen extends ValidatorEJB implements SundrybalOpenLocal,Su
{
System.out.println("Exception : [SundrybalOpenEJB][itemChanged(String,String)] :==>\n"+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return valueXmlString;
}
......@@ -685,6 +686,7 @@ public class SundrybalOpen extends ValidatorEJB implements SundrybalOpenLocal,Su
catch(Exception e)
{
System.out.println("Exception : SundrybalOpenEJB : wfValData(String xmlString) : ==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return errString;
}
......@@ -932,7 +934,7 @@ public class SundrybalOpen extends ValidatorEJB implements SundrybalOpenLocal,Su
System.out.println("ErrString ::"+errString);
return errString;
}
private ArrayList sundryDesc(String sundryType,String sundryCode,Connection conn)
private ArrayList sundryDesc(String sundryType,String sundryCode,Connection conn) throws ITMException
{
Statement stmt = null;
ResultSet rs = null;
......@@ -1008,6 +1010,7 @@ public class SundrybalOpen extends ValidatorEJB implements SundrybalOpenLocal,Su
catch(Exception e)
{
System.out.println("Exception :[SundrybalOpenEJB][sundryDesc] :==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
arrList.add(sundryDescr);
arrList.add(acctCode);
......
......@@ -170,7 +170,7 @@ conn = getConnection();
catch (Exception e)
{
e.printStackTrace();
errString = e.getMessage();
//errString = e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e);
}
finally
......@@ -440,6 +440,7 @@ conn = getConnection();
e.printStackTrace();
throw new ITMException(e);
}
throw new ITMException(ex); //added by manish mhatre on 09-aug-2019
}
finally
{
......
......@@ -169,7 +169,7 @@ conn = getConnection();
catch(Exception e)
{
e.printStackTrace();
errString = e.getMessage();
//errString = e.getMessage(); //commented by manish mhatre on 08-aug-2019
throw new ITMException(e);
}
finally
......@@ -264,6 +264,7 @@ conn = getConnection();
catch(Exception e)
{
System.out.println("Exception : [SuppInfoAmdIC][itemChanged( String, String )] :==>\n" + e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return valueXmlString;
}
......@@ -1275,7 +1276,7 @@ conn = getConnection();
return input;
}
private String getCurrdateAppFormat()
private String getCurrdateAppFormat() throws ITMException
{
String s = "";
E12GenericUtility genericUtility = new E12GenericUtility();
......@@ -1292,6 +1293,7 @@ conn = getConnection();
catch(Exception exception)
{
System.out.println("Exception in getCurrdateAppFormat " + exception.getMessage());
throw new ITMException(exception); //added by manish mhatre on 09-aug-2019
}
return s;
}
......@@ -1320,7 +1322,7 @@ conn = getConnection();
}
private String errorType(Connection conn , String errorCode)
private String errorType(Connection conn , String errorCode) throws ITMException
{
String msgType = "";
PreparedStatement pstmt = null ;
......@@ -1339,6 +1341,7 @@ conn = getConnection();
catch(Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 09-aug-2019
}
finally
{
......
......@@ -468,7 +468,7 @@ conn = getConnection();
catch(Exception e)
{
e.printStackTrace();
errString = e.getMessage();
//errString = e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e);
}
finally
......@@ -536,6 +536,7 @@ conn = getConnection();
catch(Exception e)
{
System.out.println("Exception : [JvVal][itemChanged( String, String )] :==>\n" + e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
System.out.println("valueXmlStringvalueXmlStrin ST"+valueXmlString);
return valueXmlString;
......@@ -850,7 +851,7 @@ conn = getConnection();
return findValue;
}//end of findValue
private String errorType(Connection conn , String errorCode)
private String errorType(Connection conn , String errorCode) throws ITMException
{
String msgType = "";
PreparedStatement pstmt = null ;
......@@ -869,6 +870,7 @@ conn = getConnection();
catch(Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 09-aug-2019
}
finally
{
......
......@@ -257,7 +257,7 @@ conn = getConnection();
catch(Exception e)
{
e.printStackTrace();
errString = e.getMessage();
//errString = e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e);
}
finally
......@@ -311,6 +311,7 @@ conn = getConnection();
catch(Exception e)
{
System.out.println("Exception : [TransporterIC][itemChanged( String, String )] :==>\n" + e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return valueXmlString;
}
......@@ -467,7 +468,7 @@ conn = getConnection();
return valueXmlString.toString();
}
private String errorType(Connection conn , String errorCode)
private String errorType(Connection conn , String errorCode) throws ITMException
{
String msgType = "";
PreparedStatement pstmt = null ;
......@@ -486,6 +487,7 @@ conn = getConnection();
catch(Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 09-aug-2019
}
finally
{
......
......@@ -394,7 +394,7 @@ conn = getConnection();
}//end of switch
} catch (Exception e) {
e.printStackTrace();
errString = e.getMessage();
//errString = e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e);
} finally {
try {
......
......@@ -49,6 +49,7 @@ public class UndoRecievableAdjIC extends ValidatorEJB implements UndoRecievableA
catch(Exception e)
{
System.out.println("Exception : UndoRecievableAdjIC : wfValData(String xmlString) : ==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return (errString);
}
......@@ -434,7 +435,7 @@ conn = getConnection();
catch (Exception e)
{
e.printStackTrace();
errString = e.getMessage();
//errString = e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e);
} finally
{
......@@ -684,6 +685,7 @@ conn = getConnection();
{
System.out.println("Exception ::"+ e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
finally
{
......@@ -713,7 +715,7 @@ conn = getConnection();
}
return valueXmlString.toString();
}//END OF ITEMCHANGE
private String getCurrdateAppFormat()
private String getCurrdateAppFormat() throws ITMException
{
String s = "";
// GenericUtility genericUtility = GenericUtility.getInstance();
......@@ -730,6 +732,7 @@ conn = getConnection();
catch(Exception exception)
{
System.out.println("Exception in getCurrdateAppFormat " + exception.getMessage());
throw new ITMException(exception); //added by manish mhatre on 09-aug-2019
}
return s;
}
......
......@@ -56,6 +56,7 @@ public class UndoRecievableAdjPrcIC extends ValidatorEJB implements UndoRecievab
catch(Exception e)
{
System.out.println("Exception : [UndoRecievableAdjPrcICl][itemChanged( String, String )] :==>\n" + e.getMessage());
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
return valueXmlString;
}
......@@ -458,7 +459,7 @@ public class UndoRecievableAdjPrcIC extends ValidatorEJB implements UndoRecievab
catch(Exception e)
{
e.printStackTrace();
errString = e.getMessage();
//errString = e.getMessage(); //commented by manish mhatre on 09-aug-2019
throw new ITMException(e);
}
finally
......@@ -574,7 +575,7 @@ public class UndoRecievableAdjPrcIC extends ValidatorEJB implements UndoRecievab
tempNode = null;
}
private String errorType(Connection conn , String errorCode)
private String errorType(Connection conn , String errorCode) throws ITMException
{
String msgType = "";
PreparedStatement pstmt = null ;
......@@ -597,6 +598,7 @@ public class UndoRecievableAdjPrcIC extends ValidatorEJB implements UndoRecievab
catch(Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex); //added by manish mhatre on 09-aug-2019
}
finally
{
......
......@@ -142,7 +142,7 @@ public class VoucherConfScheduler implements Schedule
}
return "";
}
private String intializingLog(String fileName)
private String intializingLog(String fileName) throws ITMException
{
String log="intializingLog_Failed";
String strToWrite = "";
......@@ -175,6 +175,7 @@ public class VoucherConfScheduler implements Schedule
{
System.out.println("Exception []::"+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
log ="intializingLog_Successesfull";
......
......@@ -142,7 +142,7 @@ public class VoucherGenScheduler implements Schedule
}
return "";
}
private String intializingLog(String fileName)
private String intializingLog(String fileName) throws ITMException
{
String log="intializingLog_Failed";
String strToWrite = "";
......@@ -175,6 +175,7 @@ public class VoucherGenScheduler implements Schedule
{
System.out.println("Exception []::"+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 09-aug-2019
}
log ="intializingLog_Successesfull";
......
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