Commit 174e2bf0 authored by mmhatre's avatar mmhatre

Add ITM Exception

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@204734 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f61368e2
......@@ -39,6 +39,7 @@ public class ChqNoChgIC extends ValidatorEJB implements ChqNoChgICLocal,ChqNoChg
catch(Exception e)
{
System.out.println("Exception : ChqNoChgIC : wfValData(String xmlString) : ==>\n"+e.getMessage());
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
return (errString);
}
......@@ -712,7 +713,7 @@ public class ChqNoChgIC extends ValidatorEJB implements ChqNoChgICLocal,ChqNoChg
return msgType;
}
private String getCurrdateAppFormat()
private String getCurrdateAppFormat() throws ITMException
{
String s = "";
try
......@@ -728,6 +729,7 @@ public class ChqNoChgIC extends ValidatorEJB implements ChqNoChgICLocal,ChqNoChg
catch(Exception exception)
{
System.out.println("Exception in getCurrdateAppFormat " + exception.getMessage());
throw new ITMException(exception); //added by manish mhatre on 06-aug-2019
}
return s;
}
......
......@@ -42,14 +42,16 @@ public class ChqNoChgPos extends ValidatorEJB implements ChqNoChgPosLocal ,ChqN
{
return "";
}
static void writeLog(File f,String Msg,boolean flag)
static void writeLog(File f,String Msg,boolean flag) throws ITMException
{
try{
PrintWriter pw = new PrintWriter((new FileOutputStream(f,flag)),flag);
pw.println("PosSave ::"+Msg);
pw.close();
}
catch(Exception exWm){exWm.printStackTrace();}
catch(Exception exWm){exWm.printStackTrace();
throw new ITMException(exWm); //added by manish mhatre on 06-aug-2019
}
}
public String postSaveRec(String xmlString1,String domId,String objContext,String editFlag, String xtraParams, Connection conn)throws RemoteException,ITMException
......
......@@ -705,7 +705,7 @@ conn = getConnection();
catch (Exception e)
{
e.printStackTrace();
errString = e.getMessage();
//errString = e.getMessage(); //commented by manish mhatre on 06-aug-2019
throw new ITMException(e);
}
finally
......@@ -738,7 +738,7 @@ conn = getConnection();
errString = errStringXml.toString();
return errString;
}
private String errorType(Connection conn, String errorCode)
private String errorType(Connection conn, String errorCode) throws ITMException
{
String msgType = "";
PreparedStatement pstmt = null;
......@@ -774,6 +774,7 @@ conn = getConnection();
{
e.printStackTrace();
}
throw new ITMException(ex); //added by manish mhatre on 06-aug-2019
}
finally
{
......@@ -830,6 +831,7 @@ conn = getConnection();
} catch (Exception e)
{
System.out.println("Exception :[itemChanged( String, String )] :==>\n"+ e.getMessage());
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
return valueXmlString;
......
......@@ -124,7 +124,7 @@ public class ConfVouchChPartnerSch implements Schedule
}
return "";
}
private String intializingLog(String fileName)
private String intializingLog(String fileName) throws ITMException
{
String log="intializingLog_Failed";
String strToWrite = "";
......@@ -154,6 +154,7 @@ public class ConfVouchChPartnerSch implements Schedule
{
System.out.println("@V@ Exception2 :-"+e.getMessage());
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
log ="intializingLog_Successesfull";
......@@ -191,6 +192,7 @@ public class ConfVouchChPartnerSch implements Schedule
{
// TODO Auto-generated catch block
e1.printStackTrace();
throw new ITMException(e1); //added by manish mhatre on 06-aug-2019
}
// Timestamp ts=null;
......
......@@ -128,6 +128,7 @@ conn = getConnection();
System.out.println("ConfirmAssetRegisterICEJB..."+e1.getMessage());
e1.printStackTrace();
}
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
finally
{
......@@ -153,7 +154,7 @@ conn = getConnection();
System.out.println("retString ::"+returnString);
return returnString;
}
private Timestamp getCurrdateAppFormat()
private Timestamp getCurrdateAppFormat() throws ITMException
{
String s = "";
Timestamp timestamp = null;
......@@ -170,6 +171,7 @@ conn = getConnection();
catch(Exception exception)
{
System.out.println("Exception in getCurrdateAppFormat " + exception.getMessage());
throw new ITMException(exception); //added by manish mhatre on 06-aug-2019
}
return timestamp;
}
......
......@@ -49,6 +49,7 @@ conn = getConnection();
{
System.out.println("Exception :ConfirmMISCVOUCHEREJB :confirm():" + e.getMessage() + ":");
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
finally
{
......
......@@ -46,6 +46,7 @@ conn = getConnection();
{
System.out.println("Exception :ConfirmPURVOUCHEREJB :confirm():" + e.getMessage() + ":");
e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 06-aug-2019
}
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