Commit 3a4f21b9 authored by msaggam's avatar msaggam

line(retString=e.toString();) is replaced with line(throw new ITMException(e);)

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@203734 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6c9bd666
...@@ -183,7 +183,8 @@ public class PostOrderActivity { ...@@ -183,7 +183,8 @@ public class PostOrderActivity {
}catch(Exception e) }catch(Exception e)
{ {
e.printStackTrace(); e.printStackTrace();
retString=e.toString(); // retString=e.toString();
throw new ITMException(e);
} }
return retString; return retString;
...@@ -1502,7 +1503,7 @@ public class PostOrderActivity { ...@@ -1502,7 +1503,7 @@ public class PostOrderActivity {
return retString; return retString;
} }
public String prdSchemeTraceUpd(String invoiceId,String xtraParams,Connection conn) public String prdSchemeTraceUpd(String invoiceId,String xtraParams,Connection conn) throws ITMException
{ {
String retString="",sql=""; String retString="",sql="";
PreparedStatement pstmt=null,pstmt1=null; PreparedStatement pstmt=null,pstmt1=null;
...@@ -1767,12 +1768,13 @@ public class PostOrderActivity { ...@@ -1767,12 +1768,13 @@ public class PostOrderActivity {
}catch(Exception e) }catch(Exception e)
{ {
e.printStackTrace(); e.printStackTrace();
retString=e.toString(); // retString=e.toString();
throw new ITMException(e);
} }
return retString; return retString;
} }
public String checkScheme(String itemCdParent,String orderType,String custCode,String siteCode,String stateDlv,String countCodeDlv,Timestamp tranDate,Connection conn) public String checkScheme(String itemCdParent,String orderType,String custCode,String siteCode,String stateDlv,String countCodeDlv,Timestamp tranDate,Connection conn) throws ITMException
{ {
String schemeCode=""; String schemeCode="";
String sql=""; String sql="";
...@@ -1870,7 +1872,8 @@ public class PostOrderActivity { ...@@ -1870,7 +1872,8 @@ public class PostOrderActivity {
}catch(Exception e) }catch(Exception e)
{ {
e.printStackTrace(); e.printStackTrace();
retString=e.toString(); // retString=e.toString();
throw new ITMException(e);
} }
return retString; return retString;
...@@ -2097,7 +2100,8 @@ public class PostOrderActivity { ...@@ -2097,7 +2100,8 @@ public class PostOrderActivity {
}catch(Exception e) }catch(Exception e)
{ {
e.printStackTrace(); e.printStackTrace();
retString=e.toString(); // retString=e.toString();
throw new ITMException(e);
} }
return retString; return retString;
} }
...@@ -2154,11 +2158,12 @@ public class PostOrderActivity { ...@@ -2154,11 +2158,12 @@ public class PostOrderActivity {
}catch(Exception e) }catch(Exception e)
{ {
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e);
} }
return nextID; return nextID;
} }
//gbf_scheme_disc_trace(minvoiceid) //gbf_scheme_disc_trace(minvoiceid)
public String schemeDiscTrace(String invoiceId,String xtraParams,Connection conn) public String schemeDiscTrace(String invoiceId,String xtraParams,Connection conn) throws ITMException
{ {
PreparedStatement pstmt=null,pstmt1=null,pstmt2=null; PreparedStatement pstmt=null,pstmt1=null,pstmt2=null;
ResultSet rs=null,rs1=null,rs2=null; ResultSet rs=null,rs1=null,rs2=null;
...@@ -2753,7 +2758,8 @@ public class PostOrderActivity { ...@@ -2753,7 +2758,8 @@ public class PostOrderActivity {
}catch(Exception e) }catch(Exception e)
{ {
e.printStackTrace(); e.printStackTrace();
retString=e.toString(); // retString=e.toString();
throw new ITMException(e);
} }
return retString; return retString;
} }
...@@ -3752,7 +3758,7 @@ public class PostOrderActivity { ...@@ -3752,7 +3758,7 @@ public class PostOrderActivity {
{ {
System.out.println("Exception ::" + e.getMessage() + ":"); System.out.println("Exception ::" + e.getMessage() + ":");
e.printStackTrace(); e.printStackTrace();
retString=e.toString(); // retString=e.toString();
throw new ITMException(e); throw new ITMException(e);
} }
...@@ -4752,7 +4758,8 @@ public class PostOrderActivity { ...@@ -4752,7 +4758,8 @@ public class PostOrderActivity {
} catch (Exception e) } catch (Exception e)
{ {
e.printStackTrace(); e.printStackTrace();
retString=e.toString(); // retString=e.toString();
throw new ITMException(e);
} }
return retString; return retString;
} }
...@@ -5449,7 +5456,8 @@ public class PostOrderActivity { ...@@ -5449,7 +5456,8 @@ public class PostOrderActivity {
{ {
System.out.println("Exception :conf ::" + e.getMessage() + ":"); System.out.println("Exception :conf ::" + e.getMessage() + ":");
e.printStackTrace(); e.printStackTrace();
retString=e.toString(); // retString=e.toString();
throw new ITMException(e);
} }
finally //finally block added closed curesor and pstmt inside finally //finally block added closed curesor and pstmt inside
{ {
......
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