Commit c7527585 authored by manohar's avatar manohar

Error handling made proper


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97208 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7e8e56cf
......@@ -832,6 +832,10 @@ public class StockTransferConf extends ActionHandlerEJB implements StockTransfer
}
////////////
}
if( !isError )
{
retString = itmDBAccess.getErrorString("","CONFSUCC","");
}
}
catch( Exception e )
{
......@@ -852,13 +856,19 @@ public class StockTransferConf extends ActionHandlerEJB implements StockTransfer
{
//added by chitranjan connStatus if connstatus is true then commit.
if( !isError && connStatus )
{
if (connStatus)
{
conn.commit();
retString = itmDBAccess.getErrorString("","CONFSUCC","");
}
//retString = itmDBAccess.getErrorString("","CONFSUCC","");
}
else if( isError && connStatus)
{
if (connStatus)
{
conn.rollback();
}
//retString=itmDBAccess.getErrorString("","VCOINDIFF1","");
}
if ( isConn && isError )
......
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