Commit 248d100f authored by mmhatre's avatar mmhatre

added ITM Exception

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@204612 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 76c25823
...@@ -1448,6 +1448,7 @@ AssetSalesConfLocal,AssetSalesConfRemote ...@@ -1448,6 +1448,7 @@ AssetSalesConfLocal,AssetSalesConfRemote
+ e.getMessage()); + e.getMessage());
errString = e.getMessage(); errString = e.getMessage();
throw new ITMException(e);*/ throw new ITMException(e);*/
throw new ITMException(e); //added by manish mhatre on 02-aug-2019
} finally } finally
{ {
...@@ -1620,7 +1621,7 @@ AssetSalesConfLocal,AssetSalesConfRemote ...@@ -1620,7 +1621,7 @@ AssetSalesConfLocal,AssetSalesConfRemote
return calculatedDate; return calculatedDate;
} }
public String gbfAssetSalePost(String asTranId, String asTranser, String lineNo, Connection conn){ public String gbfAssetSalePost(String asTranId, String asTranser, String lineNo, Connection conn) throws ITMException{
String lsErrcode = "", lsConfirm = "", lsTranId = "", lsAssetCode = "", lsSiteCode = "", lsFinEntity = ""; String lsErrcode = "", lsConfirm = "", lsTranId = "", lsAssetCode = "", lsSiteCode = "", lsFinEntity = "";
String lsCurrCode = "", lsItemSer = "", lsGrpCode = "", lsItemCode = "", lsRemarks = "", lsCustCode = ""; String lsCurrCode = "", lsItemSer = "", lsGrpCode = "", lsItemCode = "", lsRemarks = "", lsCustCode = "";
String lsBankCode = "", lsCrTerm = "", lsAcctCode = "", lsCctrCode1 = "", lsCctrCode = "", lsAcctAccCode = ""; String lsBankCode = "", lsCrTerm = "", lsAcctCode = "", lsCctrCode1 = "", lsCctrCode = "", lsAcctAccCode = "";
...@@ -2428,6 +2429,7 @@ AssetSalesConfLocal,AssetSalesConfRemote ...@@ -2428,6 +2429,7 @@ AssetSalesConfLocal,AssetSalesConfRemote
System.out.println("Exception : : :==>\n"+e.getMessage()); System.out.println("Exception : : :==>\n"+e.getMessage());
e.printStackTrace(); e.printStackTrace();
//throw new ITMException(e); //throw new ITMException(e);
throw new ITMException(e); //added by manish mhatre on 02-aug-2019
} }
finally finally
{ {
...@@ -2783,7 +2785,7 @@ AssetSalesConfLocal,AssetSalesConfRemote ...@@ -2783,7 +2785,7 @@ AssetSalesConfLocal,AssetSalesConfRemote
} }
//Added by sarita on 19 JUN 18 to get store errorType and errCode in HashMap and Return [Start] //Added by sarita on 19 JUN 18 to get store errorType and errCode in HashMap and Return [Start]
private HashMap<String,String> getErrorTypeVal(String retString) private HashMap<String,String> getErrorTypeVal(String retString) throws ITMException
{ {
HashMap<String,String> sh = new HashMap<String,String>(); HashMap<String,String> sh = new HashMap<String,String>();
Document dom = null; Document dom = null;
...@@ -2819,13 +2821,14 @@ AssetSalesConfLocal,AssetSalesConfRemote ...@@ -2819,13 +2821,14 @@ AssetSalesConfLocal,AssetSalesConfRemote
{ {
e.printStackTrace(); e.printStackTrace();
System.out.println("Error Inside Method [getErrorTypeVal] is "+e); System.out.println("Error Inside Method [getErrorTypeVal] is "+e);
throw new ITMException(e); //added by manish mhatre on 02-aug-2019
} }
return sh; return sh;
} }
//Added by sarita on 19 JUN 18 to get store errorType and errCode in HashMap and Return [End] //Added by sarita on 19 JUN 18 to get store errorType and errCode in HashMap and Return [End]
//Added by Anjali R. on[04/06/18][Added method to post hdr level data only once][Start] //Added by Anjali R. on[04/06/18][Added method to post hdr level data only once][Start]
public String gbfAssetSaleHDRPost(String asTranId, String asTranser , Connection conn) public String gbfAssetSaleHDRPost(String asTranId, String asTranser , Connection conn) throws ITMException
{ {
String lsTranId = "" , lsBankCode = "", lsCrTerm = "" ,lsErrcode = "" ,lsFinEntity = "", lsCreditPrd = ""; String lsTranId = "" , lsBankCode = "", lsCrTerm = "" ,lsErrcode = "" ,lsFinEntity = "", lsCreditPrd = "";
String lsRemarks= "" ,lsCustCode = "" ,lsAcctCodeAr ="",lsCctrCodeAr = "" , lsCurrCode = "" , String lsRemarks= "" ,lsCustCode = "" ,lsAcctCodeAr ="",lsCctrCodeAr = "" , lsCurrCode = "" ,
...@@ -3202,6 +3205,7 @@ AssetSalesConfLocal,AssetSalesConfRemote ...@@ -3202,6 +3205,7 @@ AssetSalesConfLocal,AssetSalesConfRemote
lsErrcode = "VTFASL0002"; lsErrcode = "VTFASL0002";
System.out.println("Exception : : :==>\n"+e.getMessage()); System.out.println("Exception : : :==>\n"+e.getMessage());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //added by manish mhatre on 02-aug-2019
} }
finally finally
{ {
...@@ -3288,8 +3292,16 @@ AssetSalesConfLocal,AssetSalesConfRemote ...@@ -3288,8 +3292,16 @@ AssetSalesConfLocal,AssetSalesConfRemote
{ {
System.out.println("Exception from getErrorXml---["+ e.getMessage() +"]"); System.out.println("Exception from getErrorXml---["+ e.getMessage() +"]");
e.printStackTrace(); e.printStackTrace();
//added by manish mhatre on 02-aug-2019
//start manish
try {
throw new ITMException(e);
}
catch(Exception e1) {
return retXml; return retXml;
} }
//end manish
}
return errId; return errId;
} }
//Added by sarita to get Error Code from errorString on 03 JUL 18 [END] //Added by sarita to get Error Code from errorString on 03 JUL 18 [END]
......
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