()
| 218 | } |
| 219 | |
| 220 | public void execute() throws Exception { |
| 221 | lastResult = getHandler().compile(this); |
| 222 | manageCompileResult(lastResult); |
| 223 | if (lastResult.isSuccessful()) { |
| 224 | getHandler().execute(lastResult); |
| 225 | } else { |
| 226 | StringBuilder error = new StringBuilder("Compilation failed:\n"); |
| 227 | lastResult.getErrors().forEach((line, message) -> error.append("Line %d: %s%n".formatted(line, message))); |
| 228 | lastResult.getOtherMessages().forEach(message -> error.append(message).append("\n")); |
| 229 | getHandler().clean(lastResult); |
| 230 | throw new Exception(error.toString()); |
| 231 | } |
| 232 | } |
| 233 | |
| 234 | public void test() { |
| 235 | lastResult = getHandler().compile(this); |
nothing calls this directly
no test coverage detected