axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r367626 - /webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/service/eclipse/ui/ServiceArchiveWizard.java
Date Tue, 10 Jan 2006 14:58:18 GMT
Author: ajith
Date: Tue Jan 10 06:58:11 2006
New Revision: 367626

URL: http://svn.apache.org/viewcvs?rev=367626&view=rev
Log:
Added proper handling of exceptions

Modified:
    webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/service/eclipse/ui/ServiceArchiveWizard.java

Modified: webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/service/eclipse/ui/ServiceArchiveWizard.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/service/eclipse/ui/ServiceArchiveWizard.java?rev=367626&r1=367625&r2=367626&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/service/eclipse/ui/ServiceArchiveWizard.java
(original)
+++ webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/service/eclipse/ui/ServiceArchiveWizard.java
Tue Jan 10 06:58:11 2006
@@ -19,6 +19,7 @@
 import org.apache.axis2.tool.service.bean.WizardBean;
 import org.apache.axis2.tool.service.control.Controller;
 import org.apache.axis2.tool.service.eclipse.plugin.ServiceArchiver;
+import org.eclipse.core.runtime.CoreException;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.NullProgressMonitor;
 import org.eclipse.jface.dialogs.MessageDialog;
@@ -123,7 +124,7 @@
         WorkspaceModifyOperation op = new WorkspaceModifyOperation()
         {
            protected void execute(IProgressMonitor monitor)
-           {
+           throws CoreException , InvocationTargetException, InterruptedException{
               if (monitor == null)
                  monitor = new NullProgressMonitor();
 
@@ -153,7 +154,7 @@
               }
               catch (Throwable e)
               {
-                 throw new RuntimeException(e);
+                 throw new InterruptedException(e.getMessage() );
               }
 
               monitor.done();
@@ -182,7 +183,7 @@
         }
         catch (Exception e)
         {
-            showErrorMessage(ServiceArchiver.getResourceString("wizard.codegen.unknown.error")
+ e.getMessage());
+            showErrorMessage(ServiceArchiver.getResourceString("wizard.codegen.unknown.error")
+ "  "+  e.getMessage());
             return false;
         }
 



Mime
View raw message