Commits

Anonymous committed 923c339

Changing exceptions thrown to pass in causing exception

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk/src@993e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (2)

java/com/opensymphony/xwork/util/CompoundRootAccessor.java

                     if (e.getReason() != null) {
                         final String msg = "Caught an Ognl exception while getting property " + name;
                         log.error(msg, e);
-                        throw new RuntimeException(msg, e.getReason());
+                        throw new RuntimeException(msg, e);
                     }
                 } catch (IntrospectionException e) {
                     // this is OK if this happens, we'll just keep trying the next

java/com/opensymphony/xwork/util/OgnlUtil.java

 
             if (throwPropertyExceptions) {
                 log.error(msg, exception);
-                throw new RuntimeException(msg);
+                throw new RuntimeException(msg, exception);
             } else {
                 log.warn(msg, exception);
             }