Commit 8b27c067 authored by mpatidar's avatar mpatidar

After Throws the exception in catch clause


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91741 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 15a3e64f
...@@ -65,6 +65,7 @@ public class InvoiceAmendmentIC extends ValidatorEJB implements InvoiceAmendment ...@@ -65,6 +65,7 @@ public class InvoiceAmendmentIC extends ValidatorEJB implements InvoiceAmendment
System.out.println ( "Exception: InvoiceAmendmentIC: wfValData(String xmlString): " + e.getMessage() + ":" ); System.out.println ( "Exception: InvoiceAmendmentIC: wfValData(String xmlString): " + e.getMessage() + ":" );
errString = genericUtility.createErrorString(e); errString = genericUtility.createErrorString(e);
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e);
} }
System.out.println ( "Returning from InvoiceAmendmentIC wfValData" ); System.out.println ( "Returning from InvoiceAmendmentIC wfValData" );
return ( errString ); return ( errString );
...@@ -676,6 +677,7 @@ public class InvoiceAmendmentIC extends ValidatorEJB implements InvoiceAmendment ...@@ -676,6 +677,7 @@ public class InvoiceAmendmentIC extends ValidatorEJB implements InvoiceAmendment
{ {
System.out.println("Exception in invoice amendmentIC == >"); System.out.println("Exception in invoice amendmentIC == >");
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e);
} }
finally finally
{ {
...@@ -704,7 +706,7 @@ public class InvoiceAmendmentIC extends ValidatorEJB implements InvoiceAmendment ...@@ -704,7 +706,7 @@ public class InvoiceAmendmentIC extends ValidatorEJB implements InvoiceAmendment
} }
return errString; return errString;
} }
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 ;
...@@ -724,6 +726,7 @@ public class InvoiceAmendmentIC extends ValidatorEJB implements InvoiceAmendment ...@@ -724,6 +726,7 @@ public class InvoiceAmendmentIC extends ValidatorEJB implements InvoiceAmendment
catch (Exception ex) catch (Exception ex)
{ {
ex.printStackTrace(); ex.printStackTrace();
throw new ITMException(ex);
} }
finally finally
{ {
...@@ -743,6 +746,7 @@ public class InvoiceAmendmentIC extends ValidatorEJB implements InvoiceAmendment ...@@ -743,6 +746,7 @@ public class InvoiceAmendmentIC extends ValidatorEJB implements InvoiceAmendment
catch ( Exception e ) catch ( Exception e )
{ {
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e);
} }
} }
return msgType; return msgType;
...@@ -780,6 +784,7 @@ public String itemChanged(String xmlString, String xmlString1, String xmlString2 ...@@ -780,6 +784,7 @@ public String itemChanged(String xmlString, String xmlString1, String xmlString2
{ {
System.out.println ( "Exception :invoice amendmentIC :itemChanged(String,String):" + e.getMessage() + ":" ); System.out.println ( "Exception :invoice amendmentIC :itemChanged(String,String):" + e.getMessage() + ":" );
errString = genericUtility.createErrorString(e); errString = genericUtility.createErrorString(e);
throw new ITMException(e);
} }
System.out.println ( "returning from invoice amendmentIC itemChanged" ); System.out.println ( "returning from invoice amendmentIC itemChanged" );
return errString; return errString;
...@@ -1332,6 +1337,7 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob ...@@ -1332,6 +1337,7 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob
{ {
System.out.println( "Exception :invoice amendment :itemChanged(Document,String):" + e.getMessage() + ":" ); System.out.println( "Exception :invoice amendment :itemChanged(Document,String):" + e.getMessage() + ":" );
valueXmlString = valueXmlString.append( genericUtility.createErrorString( e ) ); valueXmlString = valueXmlString.append( genericUtility.createErrorString( e ) );
throw new ITMException(e);
} }
finally finally
{ {
...@@ -1392,7 +1398,7 @@ private String checkNull( String input ) ...@@ -1392,7 +1398,7 @@ private String checkNull( String input )
return input; return input;
} }
private String checkDate( String input ) private String checkDate( String input ) throws ITMException
{ {
try try
{ {
...@@ -1408,6 +1414,7 @@ private String checkDate( String input ) ...@@ -1408,6 +1414,7 @@ private String checkDate( String input )
input = ""; input = "";
System.out.println("Error in date format at 1283"+e.getMessage()); System.out.println("Error in date format at 1283"+e.getMessage());
e.printStackTrace(); e.printStackTrace();
throw new ITMException(e);
} }
......
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