Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbvosburgh2009-12-08 20:44:24 +0000
committerbvosburgh2009-12-08 20:44:24 +0000
commit7a569eabd0f3fe1afaf90035040496f228df4b34 (patch)
tree8204c58214f218f9d9d5719ad2140c5783b5816a /jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/GenericJpaModel.java
parent259d78c450b2e06625492cfb46b870ca474390ab (diff)
downloadwebtools.dali-7a569eabd0f3fe1afaf90035040496f228df4b34.tar.gz
webtools.dali-7a569eabd0f3fe1afaf90035040496f228df4b34.tar.xz
webtools.dali-7a569eabd0f3fe1afaf90035040496f228df4b34.zip
fix some logged test exceptions
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/GenericJpaModel.java')
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/GenericJpaModel.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/GenericJpaModel.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/GenericJpaModel.java
index b2d6239f05..090cc4dfeb 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/GenericJpaModel.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/GenericJpaModel.java
@@ -362,7 +362,7 @@ class GenericJpaModel
private JpaProject buildJpaProject(JpaPlatform jpaPlatform, JpaProject.Config config) {
try {
return jpaPlatform.getJpaFactory().buildJpaProject(config);
- } catch (Exception ex) {
+ } catch (RuntimeException ex) {
JptCorePlugin.log(ex);
return null;
}
@@ -785,6 +785,8 @@ class GenericJpaModel
try {
GenericJpaModel.this.lock.acquire();
this.execute_();
+ } catch (RuntimeException ex) {
+ JptCorePlugin.log(ex);
} finally {
GenericJpaModel.this.lock.release();
}

Back to the top