Skip to content

Commit b675770

Browse files
committed
Z3: improve handling of Z3Exception
1 parent 4d6df8b commit b675770

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/org/sosy_lab/java_smt/solvers/z3/Z3OptimizationProver.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,11 @@ private Optional<Rational> round(int handle, Rational epsilon, RoundingFunction
197197
}
198198

199199
@Override
200-
protected long getZ3Model() throws InterruptedException {
200+
protected long getZ3Model() throws InterruptedException, SolverException {
201201
try {
202202
return Native.optimizeGetModel(z3context, z3optSolver);
203203
} catch (Z3Exception e) {
204-
throw new InterruptedException("Z3 model generation interrupted.");
204+
throw creator.handleZ3Exception(e);
205205
}
206206
}
207207

0 commit comments

Comments
 (0)