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

@ -29,22 +29,22 @@ public class StringSymbol extends Symbol
* Remarks: Throws an exception if the
* symbol is not of string kind.
**/
public String getString() throws Z3Exception
public String getString()
{
return Native.getSymbolString(getContext().nCtx(), getNativeObject());
}
StringSymbol(Context ctx, long obj) throws Z3Exception
StringSymbol(Context ctx, long obj)
{
super(ctx, obj);
}
StringSymbol(Context ctx, String s) throws Z3Exception
StringSymbol(Context ctx, String s)
{
super(ctx, Native.mkStringSymbol(ctx.nCtx(), s));
}
void checkNativeObject(long obj) throws Z3Exception
void checkNativeObject(long obj)
{
if (Native.getSymbolKind(getContext().nCtx(), obj) != Z3_symbol_kind.Z3_STRING_SYMBOL
.toInt())