3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-27 10:55:50 +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

@ -27,7 +27,7 @@ public class Symbol extends Z3Object
/**
* The kind of the symbol (int or string)
**/
protected Z3_symbol_kind getKind() throws Z3Exception
protected Z3_symbol_kind getKind()
{
return Z3_symbol_kind.fromInt(Native.getSymbolKind(getContext().nCtx(),
getNativeObject()));
@ -36,7 +36,7 @@ public class Symbol extends Z3Object
/**
* Indicates whether the symbol is of Int kind
**/
public boolean isIntSymbol() throws Z3Exception
public boolean isIntSymbol()
{
return getKind() == Z3_symbol_kind.Z3_INT_SYMBOL;
}
@ -44,7 +44,7 @@ public class Symbol extends Z3Object
/**
* Indicates whether the symbol is of string kind.
**/
public boolean isStringSymbol() throws Z3Exception
public boolean isStringSymbol()
{
return getKind() == Z3_symbol_kind.Z3_STRING_SYMBOL;
}
@ -72,12 +72,12 @@ public class Symbol extends Z3Object
/**
* Symbol constructor
**/
protected Symbol(Context ctx, long obj) throws Z3Exception
protected Symbol(Context ctx, long obj)
{
super(ctx, obj);
}
static Symbol create(Context ctx, long obj) throws Z3Exception
static Symbol create(Context ctx, long obj)
{
switch (Z3_symbol_kind.fromInt(Native.getSymbolKind(ctx.nCtx(), obj)))
{