mirror of
https://github.com/Z3Prover/z3
synced 2025-04-25 18:15:32 +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
|
@ -27,7 +27,7 @@ public class ParamDescrs extends Z3Object
|
|||
/**
|
||||
* validate a set of parameters.
|
||||
**/
|
||||
public void validate(Params p) throws Z3Exception
|
||||
public void validate(Params p)
|
||||
{
|
||||
|
||||
Native.paramsValidate(getContext().nCtx(), p.getNativeObject(),
|
||||
|
@ -37,7 +37,7 @@ public class ParamDescrs extends Z3Object
|
|||
/**
|
||||
* Retrieve kind of parameter.
|
||||
**/
|
||||
public Z3_param_kind getKind(Symbol name) throws Z3Exception
|
||||
public Z3_param_kind getKind(Symbol name)
|
||||
{
|
||||
|
||||
return Z3_param_kind.fromInt(Native.paramDescrsGetKind(
|
||||
|
@ -49,7 +49,7 @@ public class ParamDescrs extends Z3Object
|
|||
*
|
||||
* @throws Z3Exception
|
||||
**/
|
||||
public Symbol[] getNames() throws Z3Exception
|
||||
public Symbol[] getNames()
|
||||
{
|
||||
int sz = Native.paramDescrsSize(getContext().nCtx(), getNativeObject());
|
||||
Symbol[] names = new Symbol[sz];
|
||||
|
@ -64,7 +64,7 @@ public class ParamDescrs extends Z3Object
|
|||
/**
|
||||
* The size of the ParamDescrs.
|
||||
**/
|
||||
public int size() throws Z3Exception
|
||||
public int size()
|
||||
{
|
||||
return Native.paramDescrsSize(getContext().nCtx(), getNativeObject());
|
||||
}
|
||||
|
@ -83,18 +83,18 @@ public class ParamDescrs extends Z3Object
|
|||
}
|
||||
}
|
||||
|
||||
ParamDescrs(Context ctx, long obj) throws Z3Exception
|
||||
ParamDescrs(Context ctx, long obj)
|
||||
{
|
||||
super(ctx, obj);
|
||||
}
|
||||
|
||||
void incRef(long o) throws Z3Exception
|
||||
void incRef(long o)
|
||||
{
|
||||
getContext().getParamDescrsDRQ().incAndClear(getContext(), o);
|
||||
super.incRef(o);
|
||||
}
|
||||
|
||||
void decRef(long o) throws Z3Exception
|
||||
void decRef(long o)
|
||||
{
|
||||
getContext().getParamDescrsDRQ().add(o);
|
||||
super.decRef(o);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue