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,6 +170,15 @@ public class MiscPayConfSch implements Schedule ...@@ -170,6 +170,15 @@ public class MiscPayConfSch implements Schedule
}catch(Exception e) }catch(Exception e)
{ {
System.out.println(">>>>>>>>>>>>>In catch:"); System.out.println(">>>>>>>>>>>>>In catch:");
try
{
if(! CommonConstants.DEBUG_LEVEL.equals("0"))
{
strToWrite = " ["+tranId+"] return ["+e.getMessage()+"]";
writeLog( filePtr, strToWrite, true );
}
if(conn!=null) if(conn!=null)
{ {
conn.rollback(); conn.rollback();
...@@ -177,6 +186,12 @@ public class MiscPayConfSch implements Schedule ...@@ -177,6 +186,12 @@ public class MiscPayConfSch implements Schedule
e.printStackTrace(); e.printStackTrace();
conn.rollback(); conn.rollback();
} }
catch(Exception e1)
{
System.out.println( "Exception"+e1.getMessage());
}
}
finally finally
{ {
try try
...@@ -208,7 +223,7 @@ public class MiscPayConfSch implements Schedule ...@@ -208,7 +223,7 @@ public class MiscPayConfSch implements Schedule
// TODO Auto-generated method stub // TODO Auto-generated method stub
return null; 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 methodName = "";
String compName = ""; String compName = "";
...@@ -308,7 +323,7 @@ public class MiscPayConfSch implements Schedule ...@@ -308,7 +323,7 @@ public class MiscPayConfSch implements Schedule
return retString; 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