Strabon
changeset 50:1fffa78c6e58
Fixed erroneous exception handling. Remover catch clauses, now throwing exception to upper level (Like Sesame does)
author | Manos Karpathiotakis <mk@di.uoa.gr> |
---|---|
date | Wed Mar 14 15:49:58 2012 +0200 (2012-03-14) |
parents | b2625b0d312b |
children | 24eb0fafb8dd |
files | generaldb/src/main/java/org/openrdf/sail/generaldb/evaluation/GeneralDBEvaluation.java |
line diff
1.1 --- a/generaldb/src/main/java/org/openrdf/sail/generaldb/evaluation/GeneralDBEvaluation.java Wed Mar 14 15:09:21 2012 +0200 1.2 +++ b/generaldb/src/main/java/org/openrdf/sail/generaldb/evaluation/GeneralDBEvaluation.java Wed Mar 14 15:49:58 2012 +0200 1.3 @@ -243,7 +243,7 @@ 1.4 * Had to use it for the cases met in group by (Union as an aggregate) 1.5 */ 1.6 @Override 1.7 - public Value evaluate(FunctionCall fc, BindingSet bindings) 1.8 + public Value evaluate(FunctionCall fc, BindingSet bindings) throws ValueExprEvaluationException, QueryEvaluationException 1.9 { 1.10 // System.out.println("FunctionCall placeholder"); 1.11 1.12 @@ -292,13 +292,13 @@ 1.13 Value leftResult = null; 1.14 Value rightResult = null; 1.15 1.16 - try { 1.17 +// try { 1.18 leftResult = evaluate(left,bindings); 1.19 - } catch (ValueExprEvaluationException e) { 1.20 - e.printStackTrace(); 1.21 - } catch (QueryEvaluationException e) { 1.22 - e.printStackTrace(); 1.23 - } 1.24 +// } catch (ValueExprEvaluationException e) { 1.25 +// e.printStackTrace(); 1.26 +// } catch (QueryEvaluationException e) { 1.27 +// e.printStackTrace(); 1.28 +// } 1.29 1.30 1.31 // if(!(function instanceof EnvelopeFunc) 1.32 @@ -307,13 +307,13 @@ 1.33 if ( fc.getArgs().size() == 2 ) 1.34 { 1.35 ValueExpr right = fc.getArgs().get(1); 1.36 - try { 1.37 +// try { 1.38 rightResult = evaluate(right,bindings); 1.39 - } catch (ValueExprEvaluationException e) { 1.40 - e.printStackTrace(); 1.41 - } catch (QueryEvaluationException e) { 1.42 - e.printStackTrace(); 1.43 - } 1.44 +// } catch (ValueExprEvaluationException e) { 1.45 +// e.printStackTrace(); 1.46 +// } catch (QueryEvaluationException e) { 1.47 +// e.printStackTrace(); 1.48 +// } 1.49 } 1.50 1.51 try {