From 820ce8b51e3ef59ef286017be99bc540285b8ff9 Mon Sep 17 00:00:00 2001 From: Sergey Evdokimov Date: Tue, 21 Dec 2010 19:36:42 +0300 Subject: [PATCH] Parent exception should be passed to child exception. --- .../groovy/lang/psi/impl/GroovyPsiElementFactoryImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/lang/psi/impl/GroovyPsiElementFactoryImpl.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/lang/psi/impl/GroovyPsiElementFactoryImpl.java index 2fdb7aac0a1e..b6b4ead5eab5 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/lang/psi/impl/GroovyPsiElementFactoryImpl.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/lang/psi/impl/GroovyPsiElementFactoryImpl.java @@ -389,7 +389,7 @@ public class GroovyPsiElementFactoryImpl extends GroovyPsiElementFactory { return ((GrMethod)defintion); } catch (Exception error) { - throw new IncorrectOperationException("Can't create method from text: '" + file.getText() + "'"); + throw new IncorrectOperationException("Can't create method from text: '" + file.getText() + "'", error); } }