Formatting

This commit is contained in:
Andrey Breslav
2012-04-25 12:20:27 +04:00
parent 296c16a623
commit 3eb6b3d0f5
2 changed files with 5 additions and 3 deletions
@@ -90,9 +90,10 @@ public abstract class ClassBodyCodegen {
try { try {
genNamedFunction((JetNamedFunction) declaration, functionCodegen); genNamedFunction((JetNamedFunction) declaration, functionCodegen);
} }
catch(CompilationException e) { catch (CompilationException e) {
throw e; throw e;
} catch (RuntimeException e) { }
catch (RuntimeException e) {
throw new RuntimeException("Error generating method " + myClass.getName() + "." + declaration.getName() + " in " + context, e); throw new RuntimeException("Error generating method " + myClass.getName() + "." + declaration.getName() + " in " + context, e);
} }
} }
@@ -69,7 +69,8 @@ public class NamespaceCodegen {
else if (declaration instanceof JetNamedFunction) { else if (declaration instanceof JetNamedFunction) {
try { try {
functionCodegen.gen((JetNamedFunction) declaration); functionCodegen.gen((JetNamedFunction) declaration);
} catch (CompilationException e) { }
catch (CompilationException e) {
throw e; throw e;
} }
catch (Exception e) { catch (Exception e) {