diff options
Diffstat (limited to 'java/sca/modules')
-rw-r--r-- | java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java index d1bec6285c..4e71181747 100644 --- a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java +++ b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java @@ -135,6 +135,9 @@ public class ComponentContextImpl implements RuntimeComponentContext { } catch (ServiceRuntimeException e) { throw e; } catch (Exception e) { + if (e instanceof RuntimeException) { + throw (RuntimeException)e; + } throw new ServiceRuntimeException(e.getMessage(), e); } } |