Commit 48793893 authored by manohar's avatar manohar

throwing of exception in case of sql exception


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92582 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d8afff01
......@@ -36,7 +36,7 @@ public class StockUpdate
Timestamp lastPhycDate=null,tranDate= null,retestDate =null;
String suppCode=""; // added by cpatil
//
String considerAllocate = "", partialUsed = "";
String considerAllocate = "Y", partialUsed = "";
//
/**
* Updates stock return error if fails
......@@ -1427,23 +1427,17 @@ public class StockUpdate
sqx = sqx.getNextException();
}
try{
conn.rollback();
}catch(Exception se11){}
//throw new ITMException(se11);
throw new ITMException(sqx);
}
catch(Exception se12){
System.out.println("Exception in UpdatStock [Stockupdate]"+se12);
se12.printStackTrace();
try{
conn.rollback();
}catch(Exception se11){}
throw new ITMException(se12);
}finally{
try{
if(rs != null){rs.close();rs = null;}
if(pstmt != null){pstmt.close();pstmt = null;}
}catch(Exception t){throw new ITMException(t);}
}catch(Exception t){}
}
return errString;
}//END OF UPDATE METHOD
......
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