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

Method item

basex-core/src/main/java/org/basex/query/func/fn/FnError.java:20–27  ·  view source on GitHub ↗
(final QueryContext qc, final InputInfo ii)

Source from the content-addressed store, hash-verified

18 */
19public final class FnError extends StandardFunc {
20 @Override
21 public Item item(final QueryContext qc, final InputInfo ii) throws QueryException {
22 final QNm code = toQNmOrNull(arg(0), qc);
23 final String description = toStringOrNull(arg(1), qc);
24 final Value value = defined(2) ? arg(2).value(qc) : null;
25 throw new QueryException(info, code != null ? code : FUNERR1.qname(),
26 description != null ? description : FUNERR1.message()).value(value);
27 }
28
29 @Override
30 public boolean vacuous() {

Callers

nothing calls this directly

Calls 7

toQNmOrNullMethod · 0.80
toStringOrNullMethod · 0.80
definedMethod · 0.80
argMethod · 0.45
valueMethod · 0.45
qnameMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected