Commit 1f5c5782 authored by kmandhre's avatar kmandhre

source merge mail by rohan


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92703 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d46086cb
...@@ -1446,6 +1446,9 @@ public class StockUpdate ...@@ -1446,6 +1446,9 @@ public class StockUpdate
} }
catch (SQLException sqx) // 04/02/12 manoharan this catch block added for trapping record lock catch (SQLException sqx) // 04/02/12 manoharan this catch block added for trapping record lock
{ {
//Change by Rohan on 18-02-13 for throwing exception
SQLException ex ;
while (sqx != null) while (sqx != null)
{ {
if((CommonConstants.DB_NAME).equalsIgnoreCase("oracle") && (sqx).toString().indexOf("ORA-00054") > -1) if((CommonConstants.DB_NAME).equalsIgnoreCase("oracle") && (sqx).toString().indexOf("ORA-00054") > -1)
...@@ -1457,8 +1460,18 @@ public class StockUpdate ...@@ -1457,8 +1460,18 @@ public class StockUpdate
{ {
System.out.println("The SQLException occurs in UpdatStock [Stockupdate] getSQLState [" + sqlState + "] getErrorCode [" + errorCode + "] Exception["+sqx + "]"); System.out.println("The SQLException occurs in UpdatStock [Stockupdate] getSQLState [" + sqlState + "] getErrorCode [" + errorCode + "] Exception["+sqx + "]");
} }
//Change by Rohan on 18-02-13 for throwing exception
ex = sqx;
sqx.printStackTrace(); sqx.printStackTrace();
sqx = sqx.getNextException(); sqx = sqx.getNextException();
//Change by Rohan on 18-02-13 for throwing exception.start
if(sqx == null)
{
sqx = ex;
break;
}
//Change by Rohan on 18-02-13 for throwing exception.end
} }
throw new ITMException(sqx); throw new ITMException(sqx);
......
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