Commit 968d4fd3 authored by prane's avatar prane

added error trapping and prpoper exception handling in calcRate()method

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@200942 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 37e87a7d
...@@ -87,10 +87,10 @@ public class PriceListConf extends ActionHandlerEJB implements PriceListConfLoca ...@@ -87,10 +87,10 @@ public class PriceListConf extends ActionHandlerEJB implements PriceListConfLoca
{ {
retString = confirm(tranID, xtraParams, forcedFlag, conn, isConn); retString = confirm(tranID, xtraParams, forcedFlag, conn, isConn);
if (retString != null && retString.length() > 0) /*if (retString != null && retString.length() > 0)
{ {
throw new Exception("Exception while calling confirm for tran Id:[" + tranID + "]"); throw new Exception("Exception while calling confirm for tran Id:[" + tranID + "]");
} }*/
} catch (Exception e) { } catch (Exception e) {
//System.out.println("Exception in [InvHoldConfEJB] getCurrdateAppFormat " + exception.getMessage()); //System.out.println("Exception in [InvHoldConfEJB] getCurrdateAppFormat " + exception.getMessage());
System.out.println("Exception :PriceListconf :confirm()::" + e.getMessage() + ":"); //Pavan Rane 20may19 [Exception handling to be proper] System.out.println("Exception :PriceListconf :confirm()::" + e.getMessage() + ":"); //Pavan Rane 20may19 [Exception handling to be proper]
......
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