Commit 0b95b989 authored by mchauhan's avatar mchauhan

Added ITM Exception

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@204654 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 893f7d83
...@@ -38,7 +38,7 @@ public class SaleOrdItmGen ...@@ -38,7 +38,7 @@ public class SaleOrdItmGen
MasterStatefulLocal masterStatefulLocal = null; //for ejb3 on 3/31/2009 MasterStatefulLocal masterStatefulLocal = null; //for ejb3 on 3/31/2009
// MasterStateful masterStateful = null; // for jeb3 // MasterStateful masterStateful = null; // for jeb3
public String genItemSalesOrd(Document dom,Connection conn){ public String genItemSalesOrd(Document dom,Connection conn) throws ITMException{
NodeList detailNodes = null,currTranDetailNodes = null; NodeList detailNodes = null,currTranDetailNodes = null;
int detailNodeListLength = 0; int detailNodeListLength = 0;
Node tranNode = null,currField = null,currDetail = null,currHdr = null,currDet = null; Node tranNode = null,currField = null,currDetail = null,currHdr = null,currDet = null;
...@@ -130,9 +130,11 @@ public class SaleOrdItmGen ...@@ -130,9 +130,11 @@ public class SaleOrdItmGen
}catch(SQLException se){ }catch(SQLException se){
System.out.println("SQLException "+se); System.out.println("SQLException "+se);
se.printStackTrace(); se.printStackTrace();
throw new ITMException(se); //Added By Mukesh Chauhan on 05/08/19
}catch(Exception e){ }catch(Exception e){
System.out.println("Exception in SaleOrdItemGen "+e); System.out.println("Exception in SaleOrdItemGen "+e);
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 05/08/19
} }
finally{ finally{
try{ try{
...@@ -484,6 +486,7 @@ public class SaleOrdItmGen ...@@ -484,6 +486,7 @@ public class SaleOrdItmGen
retString = (new ITMException(e)).toString(); retString = (new ITMException(e)).toString();
System.out.println("Error In Generating Key ::==> "+e); System.out.println("Error In Generating Key ::==> "+e);
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 05/08/19
} }
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