Skip to content

Commit 7e14a49

Browse files
committed
process Java errors
1 parent 6d2c67b commit 7e14a49

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/org/sugarj/AbstractBaseProcessor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import org.sugarj.common.ATermCommands;
1212
import org.sugarj.common.Environment;
1313
import org.sugarj.common.FileCommands;
14+
import org.sugarj.common.errors.SourceCodeException;
1415
import org.sugarj.common.path.Path;
1516
import org.sugarj.util.Pair;
1617

@@ -44,7 +45,7 @@ public void compile(
4445
List<Path> path,
4546
Map<Path, Pair<Path, String>> deferredSourceFilesForSourceFile,
4647
Map<Path, Integer> generatedFileHashes
47-
) throws IOException, ClassNotFoundException {
48+
) throws IOException, ClassNotFoundException, SourceCodeException {
4849

4950

5051
List<Path> outFiles = new ArrayList<Path>();

src/org/sugarj/IBaseProcessor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import org.spoofax.interpreter.terms.IStrategoTerm;
77
import org.sugarj.common.Environment;
8+
import org.sugarj.common.errors.SourceCodeException;
89
import org.sugarj.common.path.Path;
910
import org.sugarj.common.path.RelativePath;
1011

@@ -29,5 +30,5 @@ public interface IBaseProcessor {
2930

3031
public abstract String getGeneratedSource();
3132
public abstract Path getGeneratedSourceFile();
32-
public abstract List<Path> compile(List<Path> generatedSourceFiles, Path targetDir, List<Path> classpath) throws IOException;
33+
public abstract List<Path> compile(List<Path> generatedSourceFiles, Path targetDir, List<Path> classpath) throws IOException, SourceCodeException;
3334
}

0 commit comments

Comments
 (0)