MCPcopy Create free account
hub / github.com/BaseXdb/basex / value

Method value

basex-core/src/main/java/org/basex/query/expr/Try.java:102–115  ·  view source on GitHub ↗
(final QueryContext qc)

Source from the content-addressed store, hash-verified

100 }
101
102 @Override
103 public Value value(final QueryContext qc) throws QueryException {
104 try {
105 return expr.value(qc);
106 } catch(final QueryException ex) {
107 Util.debug(ex);
108 final Catch ctch = matches(ex);
109 if(ctch != null) return ctch.value(qc, ex);
110 throw ex;
111 } finally {
112 final Value fnl = fnlly.value(qc);
113 if(fnl != Empty.VALUE) throw FINALLY_X.get(info, fnl);
114 }
115 }
116
117 /**
118 * Returns a matching catch clause.

Callers 1

optimizeMethod · 0.45

Calls 4

debugMethod · 0.95
matchesMethod · 0.95
valueMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected