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