Commit 0c1fdc2e authored by skale's avatar skale

Changes in code for throwing an exception.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91183 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 52b6d23d
......@@ -19,8 +19,11 @@ public class InvAllocTraceBean
{
f = new FileWriter("C:\\invalloc.log", true);
}
catch(Exception e){System.out.println(e.getMessage());
writeException(e);}
catch(Exception e)
{
System.out.println(e.getMessage());
writeException(e);
}
String errString = "";
String errCode = "" ;
String sql = null ;
......@@ -187,7 +190,8 @@ public class InvAllocTraceBean
System.out.println("LOT_SL : " + lotSl);
errString = e.getMessage();
e.printStackTrace();
return errString;
//return errString;
throw new ITMException(e);
}
catch(Exception e)
......@@ -206,10 +210,10 @@ public class InvAllocTraceBean
{
writeException(e1);
errString = e1.getMessage();
e = e1;
e = e1;
}
return errString;
//return errString;
throw new ITMException(e);
}
finally
{
......
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