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