Commits

Anonymous committed 34dbcc0

RuntimeException should be replaced with proper exception handling
o replaced all occurances of RuntimeException with XworkException
Issue Number: XW-102

git-svn-id: http://svn.opensymphony.com/svn/xwork/branches/xwork_1-2@1072e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (2)

tiger/src/java/com/opensymphony/xwork/apt/ConversionGenerator.java

 package com.opensymphony.xwork.apt;
 
 import com.opensymphony.xwork.conversion.metadata.ConversionDescription;
+import com.opensymphony.xwork.XworkException;
 import com.sun.mirror.apt.Filer;
 
 import java.io.File;
                 writer.close();
 
             } catch (IOException ioe) {
-                throw new RuntimeException("could not generate conversion.properties: " + ioe, ioe);
+                throw new XworkException("could not generate conversion.properties: " + ioe, ioe);
             }
         }
     }

tiger/src/java/com/opensymphony/xwork/interceptor/annotations/AnnotationWorkflowInterceptor.java

 import java.util.List;
 
 import com.opensymphony.xwork.ActionInvocation;
+import com.opensymphony.xwork.XworkException;
 import com.opensymphony.xwork.util.AnnotationUtils;
 import com.opensymphony.xwork.interceptor.Interceptor;
 import com.opensymphony.xwork.interceptor.PreResultListener;
             try {
                 m.invoke(action, (Object[]) null);
             } catch (Exception e) {
-                throw new RuntimeException(e);
+                throw new XworkException(e);
             }
         }
     }