mirror of
https://github.com/Z3Prover/z3
synced 2025-04-30 04:15:51 +00:00
Java API: Added exception wrappers and build dependencies.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
654c02701c
commit
0c1f2a8281
47 changed files with 4908 additions and 4554 deletions
|
@ -15,7 +15,7 @@ public class Pattern extends AST
|
|||
/**
|
||||
* The number of terms in the pattern.
|
||||
**/
|
||||
public int NumTerms()
|
||||
public int NumTerms() throws Z3Exception
|
||||
{
|
||||
return Native.getPatternNumTerms(Context().nCtx(), NativeObject());
|
||||
}
|
||||
|
@ -41,7 +41,13 @@ public class Pattern extends AST
|
|||
**/
|
||||
public String toString()
|
||||
{
|
||||
return Native.patternToString(Context().nCtx(), NativeObject());
|
||||
try
|
||||
{
|
||||
return Native.patternToString(Context().nCtx(), NativeObject());
|
||||
} catch (Z3Exception e)
|
||||
{
|
||||
return "Z3Exception: " + e.getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
Pattern(Context ctx, long obj) throws Z3Exception
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue