Ant task: fix unneeded exception wrapping

This commit is contained in:
Alexander Udalov
2014-07-30 16:03:52 -07:00
parent 9442724821
commit 4d25caa2e8
@@ -190,6 +190,12 @@ public class BytecodeCompiler {
throw new CompileEnvironmentException(errorMessage(src, false));
}
}
catch (BuildException e) {
throw e;
}
catch (CompileEnvironmentException e) {
throw e;
}
catch (Exception e) {
throw new CompileEnvironmentException(errorMessage(src, true), e);
}
@@ -222,6 +228,12 @@ public class BytecodeCompiler {
throw new CompileEnvironmentException(errorMessage(src, false));
}
}
catch (BuildException e) {
throw e;
}
catch (CompileEnvironmentException e) {
throw e;
}
catch (Exception e) {
throw new CompileEnvironmentException(errorMessage(src, true), e);
}
@@ -262,6 +274,12 @@ public class BytecodeCompiler {
throw new CompileEnvironmentException(errorMessage(new String[]{module}, false));
}
}
catch (BuildException e) {
throw e;
}
catch (CompileEnvironmentException e) {
throw e;
}
catch (Exception e) {
throw new CompileEnvironmentException(errorMessage(new String[]{module}, true), e);
}