mirror of
https://github.com/Z3Prover/z3
synced 2025-12-30 07:49:53 +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
|
|
@ -58,7 +58,7 @@ public class Sort extends AST
|
|||
/**
|
||||
* Returns a unique identifier for the sort.
|
||||
**/
|
||||
public int getId() throws Z3Exception
|
||||
public int getId()
|
||||
{
|
||||
return Native.getSortId(getContext().nCtx(), getNativeObject());
|
||||
}
|
||||
|
|
@ -66,7 +66,7 @@ public class Sort extends AST
|
|||
/**
|
||||
* The kind of the sort.
|
||||
**/
|
||||
public Z3_sort_kind getSortKind() throws Z3Exception
|
||||
public Z3_sort_kind getSortKind()
|
||||
{
|
||||
return Z3_sort_kind.fromInt(Native.getSortKind(getContext().nCtx(),
|
||||
getNativeObject()));
|
||||
|
|
@ -75,7 +75,7 @@ public class Sort extends AST
|
|||
/**
|
||||
* The name of the sort
|
||||
**/
|
||||
public Symbol getName() throws Z3Exception
|
||||
public Symbol getName()
|
||||
{
|
||||
return Symbol.create(getContext(),
|
||||
Native.getSortName(getContext().nCtx(), getNativeObject()));
|
||||
|
|
@ -98,12 +98,12 @@ public class Sort extends AST
|
|||
/**
|
||||
* Sort constructor
|
||||
**/
|
||||
Sort(Context ctx, long obj) throws Z3Exception
|
||||
Sort(Context ctx, long obj)
|
||||
{
|
||||
super(ctx, obj);
|
||||
}
|
||||
|
||||
void checkNativeObject(long obj) throws Z3Exception
|
||||
void checkNativeObject(long obj)
|
||||
{
|
||||
if (Native.getAstKind(getContext().nCtx(), obj) != Z3_ast_kind.Z3_SORT_AST
|
||||
.toInt())
|
||||
|
|
@ -111,7 +111,7 @@ public class Sort extends AST
|
|||
super.checkNativeObject(obj);
|
||||
}
|
||||
|
||||
static Sort create(Context ctx, long obj) throws Z3Exception
|
||||
static Sort create(Context ctx, long obj)
|
||||
{
|
||||
Z3_sort_kind sk = Z3_sort_kind.fromInt(Native.getSortKind(ctx.nCtx(), obj));
|
||||
switch (sk)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue