You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by tv...@apache.org on 2009/08/04 17:53:04 UTC

svn commit: r800856 - /incubator/pivot/trunk/web/src/org/apache/pivot/web/Query.java

Author: tvolkert
Date: Tue Aug  4 15:53:04 2009
New Revision: 800856

URL: http://svn.apache.org/viewvc?rev=800856&view=rev
Log:
Catch RuntimeException as well in Query, so we can notify listeners of the failure

Modified:
    incubator/pivot/trunk/web/src/org/apache/pivot/web/Query.java

Modified: incubator/pivot/trunk/web/src/org/apache/pivot/web/Query.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/web/src/org/apache/pivot/web/Query.java?rev=800856&r1=800855&r2=800856&view=diff
==============================================================================
--- incubator/pivot/trunk/web/src/org/apache/pivot/web/Query.java (original)
+++ incubator/pivot/trunk/web/src/org/apache/pivot/web/Query.java Tue Aug  4 15:53:04 2009
@@ -489,9 +489,12 @@
         } catch (IOException exception) {
             queryListeners.failed(this);
             throw new QueryException(exception);
-        } catch (SerializationException se) {
+        } catch (SerializationException exception) {
             queryListeners.failed(this);
-            throw new QueryException(se);
+            throw new QueryException(exception);
+        } catch (RuntimeException exception) {
+            queryListeners.failed(this);
+            throw exception;
         }
 
         return value;