Commit da89eb86 authored by vvengurlekar's avatar vvengurlekar

GlOpenConf.java

ReceivablesOpening.java - throw clause added in catch


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@192037 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 24269253
......@@ -113,7 +113,9 @@ public class GlOpenConf extends ActionHandlerEJB implements GlOpenConfLocal,GlO
System.out.println("[Exception In Connection Established:]"+ex);
ex.printStackTrace();
retString = ex.getMessage();
return retString;
//added throw clause by Varsha V
throw new ITMException(ex);
//return retString;
}
// SELECT DATA FROM GL_HDR
......@@ -155,7 +157,9 @@ public class GlOpenConf extends ActionHandlerEJB implements GlOpenConfLocal,GlO
System.out.println("Exception --["+ e.getMessage()+"]");
}
//Ended by varsha v on 04-10-18 to rollback connnection if exceptiion caught
return retString;
//added throw clause by Varsha V
throw new ITMException(se);
//return retString;
}
catch(Exception e)
{
......@@ -172,7 +176,9 @@ public class GlOpenConf extends ActionHandlerEJB implements GlOpenConfLocal,GlO
System.out.println("Exception --["+ e1.getMessage()+"]");
}
//ended by varsha v on 04-10-18 to rollback connnection if exceptiion caught
return retString;
//added throw clause by Varsha V
throw new ITMException(e);
//return retString;
}
finally
{
......@@ -205,7 +211,9 @@ public class GlOpenConf extends ActionHandlerEJB implements GlOpenConfLocal,GlO
}
//ended by varsha v on 04-10-18 to rollback connnection if exceptiion caught
System.out.println("Exception In Closing Statement and ResultSet" + retString);
return retString;
//added throw clause by Varsha V
throw new ITMException(e);
//return retString;
}
}
// TESTING FOR CONFIRM FIELD
......@@ -274,7 +282,9 @@ public class GlOpenConf extends ActionHandlerEJB implements GlOpenConfLocal,GlO
System.out.println("Exception --["+ e.getMessage()+"]");
}
//ended by varsha v on 04-10-18 to rollback connnection if exceptiion caught
return retString;
//added throw clause by Varsha V
throw new ITMException(se);
//return retString;
}
catch(Exception e)
{
......@@ -291,7 +301,9 @@ public class GlOpenConf extends ActionHandlerEJB implements GlOpenConfLocal,GlO
System.out.println("Exception --["+ e1.getMessage()+"]");
}
//ended by varsha v on 04-10-18 to rollback connnection if exceptiion caught
return retString;
//added throw clause by Varsha V
throw new ITMException(e);
//return retString;
}
finally
{
......@@ -324,7 +336,9 @@ public class GlOpenConf extends ActionHandlerEJB implements GlOpenConfLocal,GlO
}
//ended by varsha v on 04-10-18 to rollback connnection if exceptiion caught
System.out.println("Exception In Closing Statement and ResultSet" + retString);
return retString;
//added throw clause by Varsha V
throw new ITMException(e);
//return retString;
}
}
if (cnt == 0)
......@@ -372,7 +386,9 @@ public class GlOpenConf extends ActionHandlerEJB implements GlOpenConfLocal,GlO
}
se.printStackTrace();
retString = se.getMessage();
return retString;
//added throw clause by Varsha V
throw new ITMException(se);
//return retString;
}
catch(Exception e)
{
......@@ -389,7 +405,9 @@ public class GlOpenConf extends ActionHandlerEJB implements GlOpenConfLocal,GlO
System.out.println("Exception --["+ e1.getMessage()+"]");
}
//ended by varsha v on 04-10-18 to rollback connnection if exceptiion caught
return retString;
//added throw clause by Varsha V
throw new ITMException(e);
//return retString;
}
finally
{
......@@ -416,7 +434,9 @@ public class GlOpenConf extends ActionHandlerEJB implements GlOpenConfLocal,GlO
System.out.println("Exception --["+ e1.getMessage()+"]");
}
//ended by varsha v on 04-10-18 to rollback connnection if exceptiion caught
return retString;
//added throw clause by Varsha V
throw new ITMException(e);
//return retString;
}
}
......@@ -465,7 +485,9 @@ public class GlOpenConf extends ActionHandlerEJB implements GlOpenConfLocal,GlO
}
se.printStackTrace();
retString = se.getMessage();
return retString;
//added throw clause by Varsha V
throw new ITMException(se);
//return retString;
}
catch(Exception e)
{
......@@ -482,7 +504,9 @@ public class GlOpenConf extends ActionHandlerEJB implements GlOpenConfLocal,GlO
System.out.println("Exception In Rollback Transaction");
}
//ended by varsha v on 04-10-18 to rollback connnection if exceptiion caught
return retString;
//added throw clause by Varsha V
throw new ITMException(e);
//return retString;
}
finally
{
......@@ -509,7 +533,9 @@ public class GlOpenConf extends ActionHandlerEJB implements GlOpenConfLocal,GlO
System.out.println("Exception In Rollback Transaction");
}
//ended by varsha v on 04-10-18 to rollback connnection if exceptiion caught
return retString;
//added throw clause by Varsha V
throw new ITMException(e);
//return retString;
}
}
}
......@@ -577,7 +603,9 @@ public class GlOpenConf extends ActionHandlerEJB implements GlOpenConfLocal,GlO
}
se.printStackTrace();
retString = se.getMessage();
return retString;
//added throw clause by Varsha V
throw new ITMException(se);
//return retString;
}
catch(Exception e) //Gulzar
{
......@@ -594,7 +622,9 @@ public class GlOpenConf extends ActionHandlerEJB implements GlOpenConfLocal,GlO
System.out.println("Exception In Rollback Transaction");
}
//ended by varsha v on 04-10-18 to rollback connnection if exceptiion caught
return retString;
//added throw clause by Varsha V
throw new ITMException(e);
//return retString;
}
finally
{
......@@ -621,7 +651,9 @@ public class GlOpenConf extends ActionHandlerEJB implements GlOpenConfLocal,GlO
System.out.println("Exception In Rollback Transaction");
}
//ended by varsha v on 04-10-18 to rollback connnection if exceptiion caught
return retString;
//added throw clause by Varsha V
throw new ITMException(e);
//return retString;
}
}//Finally Block
}//Else Block
......@@ -671,7 +703,9 @@ public class GlOpenConf extends ActionHandlerEJB implements GlOpenConfLocal,GlO
System.out.println("Exception In Rollback Transaction");
}
//ended by varsha v on 04-10-18 to rollback connnection if exceptiion caught
return retString;
//added throw clause by Varsha V
throw new ITMException(se);
//return retString;
}
catch(Exception e)
{
......@@ -690,6 +724,8 @@ public class GlOpenConf extends ActionHandlerEJB implements GlOpenConfLocal,GlO
}
//ended by varsha v on 04-10-18 to rollback connnection if exceptiion caught
retString = "Not Confirmed :" + e.getMessage();
//added throw clause by Varsha V
throw new ITMException(e);
}
finally
{
......@@ -716,7 +752,9 @@ public class GlOpenConf extends ActionHandlerEJB implements GlOpenConfLocal,GlO
System.out.println("Exception In Rollback Transaction");
}
//ended by varsha v on 04-10-18 to rollback connnection if exceptiion caught
return retString;
//added throw clause by Varsha V
throw new ITMException(se);
//return retString;
}
}//finally
}//Try Block
......@@ -767,7 +805,9 @@ public class GlOpenConf extends ActionHandlerEJB implements GlOpenConfLocal,GlO
System.out.println("Exception In Rollback Transaction");
}
//ended by varsha v on 04-10-18 to rollback connnection if exceptiion caught
return retString;
//added throw clause by Varsha V
throw new ITMException(e);
//return retString;
}
}// Finally Block
}//Else Block
......
......@@ -71,6 +71,8 @@ public class ReceivablesOpening extends ValidatorEJB implements ReceivablesOpeni
{
System.out.println("Exception : [ReceivablesOpeningEJB][itemChanged(String,String)] :==>\n"+e.getMessage());
e.printStackTrace();
//Added throw clasue by Varsha V
throw new ITMException(e);
}
return valueXmlString;
}
......@@ -921,7 +923,10 @@ public class ReceivablesOpening extends ValidatorEJB implements ReceivablesOpeni
conn = null;
}
//ended by Varsha V on 11-10-18 for rollback, closing connection
}catch(Exception s){}
}catch(Exception s){
//Added throw clasue by Varsha V
throw new ITMException(s);
}
}
return valueXmlString.toString();
}
......@@ -1633,7 +1638,10 @@ public class ReceivablesOpening extends ValidatorEJB implements ReceivablesOpeni
conn = null;
}
//ended by Varsha V on 11-10-18 for adding connection method
}catch(Exception se){}
}catch(Exception se){
//Added throw clasue by Varsha V
throw new ITMException(se);
}
}
System.out.println("ErrString ::"+errString);
return errString;
......
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