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
System.out.println ( "Exception: InvoiceAmendmentIC: wfValData(String xmlString): " + e.getMessage() + ":" );
errString = genericUtility.createErrorString(e);
e.printStackTrace();
throw new ITMException(e);
}
System.out.println ( "Returning from InvoiceAmendmentIC wfValData" );
return ( errString );
......@@ -676,6 +677,7 @@ public class InvoiceAmendmentIC extends ValidatorEJB implements InvoiceAmendment
{
System.out.println("Exception in invoice amendmentIC == >");
e.printStackTrace();
throw new ITMException(e);
}
finally
{
......@@ -704,7 +706,7 @@ public class InvoiceAmendmentIC extends ValidatorEJB implements InvoiceAmendment
}
return errString;
}
private String errorType( Connection conn , String errorCode )
private String errorType( Connection conn , String errorCode ) throws ITMException
{
String msgType = "";
PreparedStatement pstmt = null ;
......@@ -724,6 +726,7 @@ public class InvoiceAmendmentIC extends ValidatorEJB implements InvoiceAmendment
catch (Exception ex)
{
ex.printStackTrace();
throw new ITMException(ex);
}
finally
{
......@@ -743,6 +746,7 @@ public class InvoiceAmendmentIC extends ValidatorEJB implements InvoiceAmendment
catch ( Exception e )
{
e.printStackTrace();
throw new ITMException(e);
}
}
return msgType;
......@@ -780,6 +784,7 @@ public String itemChanged(String xmlString, String xmlString1, String xmlString2
{
System.out.println ( "Exception :invoice amendmentIC :itemChanged(String,String):" + e.getMessage() + ":" );
errString = genericUtility.createErrorString(e);
throw new ITMException(e);
}
System.out.println ( "returning from invoice amendmentIC itemChanged" );
return errString;
......@@ -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() + ":" );
valueXmlString = valueXmlString.append( genericUtility.createErrorString( e ) );
throw new ITMException(e);
}
finally
{
......@@ -1392,7 +1398,7 @@ private String checkNull( String input )
return input;
}
private String checkDate( String input )
private String checkDate( String input ) throws ITMException
{
try
{
......@@ -1408,6 +1414,7 @@ private String checkDate( String input )
input = "";
System.out.println("Error in date format at 1283"+e.getMessage());
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