Skip to content

Commit

Permalink
Throw UnsupportedOperationException for rego types that are not suppo…
Browse files Browse the repository at this point in the history
…rted yet
  • Loading branch information
vierbergenlars committed Aug 17, 2023
1 parent 1c23b3f commit 73a88da
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import com.contentgrid.opa.rego.ast.Term.Null;
import com.contentgrid.opa.rego.ast.Term.Numeric;
import com.contentgrid.opa.rego.ast.Term.Ref;
import com.contentgrid.opa.rego.ast.Term.SetTerm;
import com.contentgrid.opa.rego.ast.Term.Text;
import com.contentgrid.opa.rego.ast.Term.Var;
import com.contentgrid.thunx.predicates.model.Comparison;
Expand Down Expand Up @@ -248,7 +249,7 @@ public ThunkExpression<?> visit(Ref ref) {
public ThunkExpression<?> visit(Call call) {
// 1st term is the operator
// 2nd..Nth term are the arguments
return null;
throw new UnsupportedOperationException();
}

@Override
Expand Down Expand Up @@ -279,7 +280,12 @@ public ThunkExpression<?> visit(Null nullValue) {

@Override
public ThunkExpression<?> visit(ArrayTerm arrayTerm) {
return null;
throw new UnsupportedOperationException();
}

@Override
public ThunkExpression<?> visit(SetTerm setTerm) {
throw new UnsupportedOperationException();
}
}

Expand Down

0 comments on commit 73a88da

Please sign in to comment.