Commit 55b5bf50 authored by mchauhan's avatar mchauhan

Added ITM Exception

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@204593 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9159b8e7
...@@ -121,6 +121,7 @@ public class BenefitPrc extends ProcessEJB implements BenefitPrcLocal,BenefitPrc ...@@ -121,6 +121,7 @@ public class BenefitPrc extends ProcessEJB implements BenefitPrcLocal,BenefitPrc
{ {
System.out.println("Exception :BenefitPrcEJB :process(String xmlString, String xmlString2, String windowName, String xtraParams):" + e.getMessage() + ":"); System.out.println("Exception :BenefitPrcEJB :process(String xmlString, String xmlString2, String windowName, String xtraParams):" + e.getMessage() + ":");
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 02/08/19
} }
return retStr; return retStr;
}//END OF PROCESS (1) }//END OF PROCESS (1)
...@@ -336,7 +337,8 @@ public class BenefitPrc extends ProcessEJB implements BenefitPrcLocal,BenefitPrc ...@@ -336,7 +337,8 @@ public class BenefitPrc extends ProcessEJB implements BenefitPrcLocal,BenefitPrc
System.out.println("Exception in BENEFITPrcEJB..."+e.getMessage()); System.out.println("Exception in BENEFITPrcEJB..."+e.getMessage());
e.printStackTrace(); e.printStackTrace();
errorString = e.getMessage(); /*errorString = e.getMessage();*/ //Commented By Mukesh Chauhan on 02/08/19
throw new ITMException(e); //Added By Mukesh Chauhan on 02/08/19
} }
finally finally
{ {
...@@ -358,6 +360,7 @@ public class BenefitPrc extends ProcessEJB implements BenefitPrcLocal,BenefitPrc ...@@ -358,6 +360,7 @@ public class BenefitPrc extends ProcessEJB implements BenefitPrcLocal,BenefitPrc
catch(SQLException sqle) catch(SQLException sqle)
{ {
sqle.printStackTrace(); sqle.printStackTrace();
throw new ITMException(sqle); //Added By Mukesh Chauhan on 02/08/19
} }
} }
System.out.println("returning from BenefitPrcEJB "+merrcode); System.out.println("returning from BenefitPrcEJB "+merrcode);
...@@ -387,7 +390,8 @@ public class BenefitPrc extends ProcessEJB implements BenefitPrcLocal,BenefitPrc ...@@ -387,7 +390,8 @@ public class BenefitPrc extends ProcessEJB implements BenefitPrcLocal,BenefitPrc
catch (Exception e) catch (Exception e)
{ {
System.out.println("Exception :Xform :getData(String xmlString, String xmlString2, String windowName, String xtraParams):" + e.getMessage() + ":"); System.out.println("Exception :Xform :getData(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)
...@@ -893,6 +897,7 @@ public class BenefitPrc extends ProcessEJB implements BenefitPrcLocal,BenefitPrc ...@@ -893,6 +897,7 @@ public class BenefitPrc extends ProcessEJB implements BenefitPrcLocal,BenefitPrc
catch(Exception e) catch(Exception e)
{ {
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 02/08/19
} }
//valueXmlString.append("</Root>\r\n"); //valueXmlString.append("</Root>\r\n");
...@@ -1080,13 +1085,14 @@ public class BenefitPrc extends ProcessEJB implements BenefitPrcLocal,BenefitPrc ...@@ -1080,13 +1085,14 @@ public class BenefitPrc extends ProcessEJB implements BenefitPrcLocal,BenefitPrc
catch(Exception e) catch(Exception e)
{ {
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 02/08/19
} }
//valueXmlString.append("</Root>\r\n"); //valueXmlString.append("</Root>\r\n");
return merrcode ; return merrcode ;
} // end of depb } // end of depb
private Timestamp getCurrdateAppFormat() private Timestamp getCurrdateAppFormat() throws ITMException
{ {
String s = ""; String s = "";
Timestamp timestamp = null; Timestamp timestamp = null;
...@@ -1106,6 +1112,7 @@ public class BenefitPrc extends ProcessEJB implements BenefitPrcLocal,BenefitPrc ...@@ -1106,6 +1112,7 @@ public class BenefitPrc extends ProcessEJB implements BenefitPrcLocal,BenefitPrc
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;
} }
...@@ -1150,10 +1157,12 @@ public class BenefitPrc extends ProcessEJB implements BenefitPrcLocal,BenefitPrc ...@@ -1150,10 +1157,12 @@ public class BenefitPrc extends ProcessEJB implements BenefitPrcLocal,BenefitPrc
{ {
System.out.println("SQLException :Generating id[failed] : \n" + sqlexception.getMessage()); System.out.println("SQLException :Generating id[failed] : \n" + sqlexception.getMessage());
sqlexception.printStackTrace(); sqlexception.printStackTrace();
throw new ITMException(sqlexception); //Added By Mukesh Chauhan on 02/08/19
} }
catch(Exception exception) catch(Exception exception)
{ {
System.out.println("Exception:Generating id [failed]:\n" + exception.getMessage()); System.out.println("Exception:Generating id [failed]:\n" + exception.getMessage());
throw new ITMException(exception); //Added By Mukesh Chauhan on 02/08/19
} }
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