Commit 9eb2f20b authored by mchauhan's avatar mchauhan

Added ITM Exception

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@204575 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c78735ae
......@@ -39,7 +39,6 @@ public class AssociatePrc extends ProcessEJB implements AssociatePrcLocal , Asso
NodeList enqNodeList = null;
NodeList childNodeList = null;
Node parentNode = null;
Node enqNode = null;
Node childNode = null;
int ctr = 0,cnt = 0;
String childNodeName = null;
......@@ -110,7 +109,8 @@ public class AssociatePrc extends ProcessEJB implements AssociatePrcLocal , Asso
catch (Exception e)
{
System.out.println("Exception :Xform :process(String xmlString, String xmlString2, String windowName, String xtraParams):" + e.getMessage() + ":");
rtrStr = e.getMessage();
/*rtrStr = e.getMessage();*/ //Commented By Mukesh Chauhan on 02/08/19
throw new ITMException(e); //Added By Mukesh Chauhan on 02/08/19
}
return rtrStr;
}//END OF GETDATA(1)
......@@ -1027,7 +1027,9 @@ public class AssociatePrc extends ProcessEJB implements AssociatePrcLocal , Asso
conn.rollback();
}
catch(Exception ex)
{ ex.printStackTrace();}
{
ex.printStackTrace();
}
//System.out.println("Exception : Associate : actionProcess " +e.getMessage());
throw new ITMException(e);
......@@ -1066,7 +1068,7 @@ public class AssociatePrc extends ProcessEJB implements AssociatePrcLocal , Asso
}//END OF GETDATA(2)
private Timestamp getCurrdateAppFormat()
private Timestamp getCurrdateAppFormat() throws ITMException
{
String s = "";
Timestamp timestamp = null;
......@@ -1086,10 +1088,11 @@ public class AssociatePrc extends ProcessEJB implements AssociatePrcLocal , Asso
catch(Exception exception)
{
System.out.println("Exception in getCurrdateAppFormat " + exception.getMessage());
throw new ITMException(exception); //Added By Mukesh Chauhan on 02/08/19
}
return timestamp;
}
private String generateTranId(String windowName,String xmlValues,Connection conn)
private String generateTranId(String windowName,String xmlValues,Connection conn) throws ITMException
{
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
PreparedStatement pstmt = null;
......@@ -1165,12 +1168,14 @@ public class AssociatePrc extends ProcessEJB implements AssociatePrcLocal , Asso
//System.out.println("Exception ::" +sql+ ex.getMessage() + ":");
ex.printStackTrace();
tranId=null;
throw new ITMException(ex); //Added By Mukesh Chauhan on 02/08/19
}
catch(Exception e)
{
//System.out.println("Exception ::" + e.getMessage() + ":");
e.printStackTrace();
tranId=null;
throw new ITMException(e); //Added By Mukesh Chauhan on 02/08/19
}
return tranId;
}//generateTranTd()
......
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