mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 11:25:51 +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:
parent
2f4c923216
commit
b7bb53406f
62 changed files with 834 additions and 834 deletions
|
@ -28,7 +28,7 @@ public class Constructor extends Z3Object
|
|||
* @throws Z3Exception on error
|
||||
* @return an int
|
||||
**/
|
||||
public int getNumFields() throws Z3Exception
|
||||
public int getNumFields()
|
||||
{
|
||||
return n;
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ public class Constructor extends Z3Object
|
|||
* @throws Z3Exception
|
||||
* @throws Z3Exception on error
|
||||
**/
|
||||
public FuncDecl ConstructorDecl() throws Z3Exception
|
||||
public FuncDecl ConstructorDecl()
|
||||
{
|
||||
Native.LongPtr constructor = new Native.LongPtr();
|
||||
Native.LongPtr tester = new Native.LongPtr();
|
||||
|
@ -52,7 +52,7 @@ public class Constructor extends Z3Object
|
|||
* @throws Z3Exception
|
||||
* @throws Z3Exception on error
|
||||
**/
|
||||
public FuncDecl getTesterDecl() throws Z3Exception
|
||||
public FuncDecl getTesterDecl()
|
||||
{
|
||||
Native.LongPtr constructor = new Native.LongPtr();
|
||||
Native.LongPtr tester = new Native.LongPtr();
|
||||
|
@ -66,7 +66,7 @@ public class Constructor extends Z3Object
|
|||
* @throws Z3Exception
|
||||
* @throws Z3Exception on error
|
||||
**/
|
||||
public FuncDecl[] getAccessorDecls() throws Z3Exception
|
||||
public FuncDecl[] getAccessorDecls()
|
||||
{
|
||||
Native.LongPtr constructor = new Native.LongPtr();
|
||||
Native.LongPtr tester = new Native.LongPtr();
|
||||
|
@ -82,7 +82,7 @@ public class Constructor extends Z3Object
|
|||
* Destructor.
|
||||
* @throws Z3Exception on error
|
||||
**/
|
||||
protected void finalize() throws Z3Exception
|
||||
protected void finalize()
|
||||
{
|
||||
Native.delConstructor(getContext().nCtx(), getNativeObject());
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ public class Constructor extends Z3Object
|
|||
|
||||
Constructor(Context ctx, Symbol name, Symbol recognizer,
|
||||
Symbol[] fieldNames, Sort[] sorts, int[] sortRefs)
|
||||
throws Z3Exception
|
||||
|
||||
{
|
||||
super(ctx);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue