3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-28 00:48:45 +00:00

Turned Z3Exception into a RuntimeException such that throws declarations are not needed anymore. Thanks to codeplex user steimann for this suggestion.

This commit is contained in:
Christoph M. Wintersteiger 2015-04-08 13:16:32 +01:00
parent 2f4c923216
commit b7bb53406f
62 changed files with 834 additions and 834 deletions

View file

@ -26,7 +26,7 @@ public class TupleSort extends Sort
* The constructor function of the tuple.
* @throws Z3Exception
**/
public FuncDecl mkDecl() throws Z3Exception
public FuncDecl mkDecl()
{
return new FuncDecl(getContext(), Native.getTupleSortMkDecl(getContext()
@ -36,7 +36,7 @@ public class TupleSort extends Sort
/**
* The number of fields in the tuple.
**/
public int getNumFields() throws Z3Exception
public int getNumFields()
{
return Native.getTupleSortNumFields(getContext().nCtx(), getNativeObject());
}
@ -45,7 +45,7 @@ public class TupleSort extends Sort
* The field declarations.
* @throws Z3Exception
**/
public FuncDecl[] getFieldDecls() throws Z3Exception
public FuncDecl[] getFieldDecls()
{
int n = getNumFields();
@ -57,7 +57,7 @@ public class TupleSort extends Sort
}
TupleSort(Context ctx, Symbol name, int numFields, Symbol[] fieldNames,
Sort[] fieldSorts) throws Z3Exception
Sort[] fieldSorts)
{
super(ctx, 0);