Commit ca521611 authored by manohar's avatar manohar

log writing done in case any exception also


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97937 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 14af2ec7
......@@ -170,12 +170,27 @@ public class MiscPayConfSch implements Schedule
}catch(Exception e)
{
System.out.println(">>>>>>>>>>>>>In catch:");
if(conn!=null)
try
{
if(! CommonConstants.DEBUG_LEVEL.equals("0"))
{
strToWrite = " ["+tranId+"] return ["+e.getMessage()+"]";
writeLog( filePtr, strToWrite, true );
}
if(conn!=null)
{
conn.rollback();
}
e.printStackTrace();
conn.rollback();
}
e.printStackTrace();
conn.rollback();
catch(Exception e1)
{
System.out.println( "Exception"+e1.getMessage());
}
}
finally
{
......@@ -208,7 +223,7 @@ public class MiscPayConfSch implements Schedule
// TODO Auto-generated method stub
return null;
}
public String payConfirm(String businessObj,String tranId,String xtraParams,String forcedFlag, Connection conn) throws ITMException
public String payConfirm(String businessObj,String tranId,String xtraParams,String forcedFlag, Connection conn) throws Exception, ITMException
{
String methodName = "";
String compName = "";
......@@ -308,7 +323,7 @@ public class MiscPayConfSch implements Schedule
return retString;
}
void writeLog(File f,String Msg,boolean flag)
void writeLog(File f,String Msg,boolean flag) throws Exception
{
......
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