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