Ant task: fix unneeded exception wrapping
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user