3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-07 07:45:46 +00:00

Java API: Added exception wrappers and build dependencies.

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
Christoph M. Wintersteiger 2012-11-30 15:39:25 +00:00
parent 654c02701c
commit 0c1f2a8281
47 changed files with 4908 additions and 4554 deletions

View file

@ -7,6 +7,7 @@
package com.microsoft.z3;
import java.math.BigInteger;
/**
* Rational Numerals
**/
@ -63,7 +64,13 @@ public class RatNum extends RealExpr
**/
public String toString()
{
return Native.getNumeralString(Context().nCtx(), NativeObject());
try
{
return Native.getNumeralString(Context().nCtx(), NativeObject());
} catch (Z3Exception e)
{
return "Z3Exception: " + e.getMessage();
}
}
RatNum(Context ctx, long obj) throws Z3Exception