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

@ -25,7 +25,7 @@ import java.math.BigInteger;
public class IntNum extends IntExpr
{
IntNum(Context ctx, long obj) throws Z3Exception
IntNum(Context ctx, long obj)
{
super(ctx, obj);
}
@ -33,7 +33,7 @@ public class IntNum extends IntExpr
/**
* Retrieve the int value.
**/
public int getInt() throws Z3Exception
public int getInt()
{
Native.IntPtr res = new Native.IntPtr();
if (Native.getNumeralInt(getContext().nCtx(), getNativeObject(), res) ^ true)
@ -44,7 +44,7 @@ public class IntNum extends IntExpr
/**
* Retrieve the 64-bit int value.
**/
public long getInt64() throws Z3Exception
public long getInt64()
{
Native.LongPtr res = new Native.LongPtr();
if (Native.getNumeralInt64(getContext().nCtx(), getNativeObject(), res) ^ true)
@ -55,7 +55,7 @@ public class IntNum extends IntExpr
/**
* Retrieve the BigInteger value.
**/
public BigInteger getBigInteger() throws Z3Exception
public BigInteger getBigInteger()
{
return new BigInteger(this.toString());
}