Commit 6be19411 authored by mchauhan's avatar mchauhan

Added ITM Exception

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@204595 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 46e45e10
...@@ -71,6 +71,7 @@ public class BugListEJB extends ValidatorEJB implements BugListEJBLocal, BugList ...@@ -71,6 +71,7 @@ public class BugListEJB extends ValidatorEJB implements BugListEJBLocal, BugList
System.out.println ( "Exception: AsnLotStatIC: wfValData(String xmlString): " + e.getMessage() + ":" ); System.out.println ( "Exception: AsnLotStatIC: wfValData(String xmlString): " + e.getMessage() + ":" );
errString = genericUtility.createErrorString(e); errString = genericUtility.createErrorString(e);
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e); //Added By Mukesh Chauhan on 02/08/19
} }
System.out.println ( "Returning from AsnLotStatIC wfValData" ); System.out.println ( "Returning from AsnLotStatIC wfValData" );
return ( errString ); return ( errString );
...@@ -336,6 +337,7 @@ public class BugListEJB extends ValidatorEJB implements BugListEJBLocal, BugList ...@@ -336,6 +337,7 @@ public class BugListEJB extends ValidatorEJB implements BugListEJBLocal, BugList
{ {
System.out.println ( "Exception :itemChanged(String,String):" + e.getMessage() + ":" ); System.out.println ( "Exception :itemChanged(String,String):" + e.getMessage() + ":" );
errString = genericUtility.createErrorString(e); errString = genericUtility.createErrorString(e);
throw new ITMException(e); //Added By Mukesh Chauhan on 02/08/19
} }
System.out.println ( "returning from Bug Fix itemChanged" ); System.out.println ( "returning from Bug Fix itemChanged" );
return (errString); return (errString);
...@@ -464,7 +466,7 @@ public class BugListEJB extends ValidatorEJB implements BugListEJBLocal, BugList ...@@ -464,7 +466,7 @@ public class BugListEJB extends ValidatorEJB implements BugListEJBLocal, BugList
} }
return input.trim(); return input.trim();
} }
private String errorType( Connection conn , String errorCode ) private String errorType( Connection conn , String errorCode ) throws ITMException
{ {
String msgType = ""; String msgType = "";
PreparedStatement pstmt = null ; PreparedStatement pstmt = null ;
...@@ -484,6 +486,7 @@ public class BugListEJB extends ValidatorEJB implements BugListEJBLocal, BugList ...@@ -484,6 +486,7 @@ public class BugListEJB extends ValidatorEJB implements BugListEJBLocal, BugList
catch (Exception ex) catch (Exception ex)
{ {
ex.printStackTrace(); ex.printStackTrace();
throw new ITMException(ex); //Added By Mukesh Chauhan on 02/08/19
} }
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