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 ...@@ -19,8 +19,11 @@ public class InvAllocTraceBean
{ {
f = new FileWriter("C:\\invalloc.log", true); f = new FileWriter("C:\\invalloc.log", true);
} }
catch(Exception e){System.out.println(e.getMessage()); catch(Exception e)
writeException(e);} {
System.out.println(e.getMessage());
writeException(e);
}
String errString = ""; String errString = "";
String errCode = "" ; String errCode = "" ;
String sql = null ; String sql = null ;
...@@ -187,7 +190,8 @@ public class InvAllocTraceBean ...@@ -187,7 +190,8 @@ public class InvAllocTraceBean
System.out.println("LOT_SL : " + lotSl); System.out.println("LOT_SL : " + lotSl);
errString = e.getMessage(); errString = e.getMessage();
e.printStackTrace(); e.printStackTrace();
return errString; //return errString;
throw new ITMException(e);
} }
catch(Exception e) catch(Exception e)
...@@ -207,9 +211,9 @@ public class InvAllocTraceBean ...@@ -207,9 +211,9 @@ public class InvAllocTraceBean
writeException(e1); writeException(e1);
errString = e1.getMessage(); errString = e1.getMessage();
e = e1; e = e1;
} }
return errString; //return errString;
throw new ITMException(e);
} }
finally 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