3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-25 18:15:32 +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

@ -16,7 +16,7 @@ public class ParamDescrs extends Z3Object
/**
* validate a set of parameters.
**/
public void Validate(Params p)
public void Validate(Params p) throws Z3Exception
{
Native.paramsValidate(Context().nCtx(), p.NativeObject(),
@ -26,7 +26,7 @@ public class ParamDescrs extends Z3Object
/**
* Retrieve kind of parameter.
**/
public Z3_param_kind GetKind(Symbol name)
public Z3_param_kind GetKind(Symbol name) throws Z3Exception
{
return Z3_param_kind.fromInt(Native.paramDescrsGetKind(
@ -53,7 +53,7 @@ public class ParamDescrs extends Z3Object
/**
* The size of the ParamDescrs.
**/
public int Size()
public int Size() throws Z3Exception
{
return Native.paramDescrsSize(Context().nCtx(), NativeObject());
}
@ -63,7 +63,13 @@ public class ParamDescrs extends Z3Object
**/
public String toString()
{
return Native.paramDescrsToString(Context().nCtx(), NativeObject());
try
{
return Native.paramDescrsToString(Context().nCtx(), NativeObject());
} catch (Z3Exception e)
{
return "Z3Exception: " + e.getMessage();
}
}
ParamDescrs(Context ctx, long obj) throws Z3Exception