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

Method get

basex-core/src/main/java/org/basex/query/func/fn/FnError.java:45–51  ·  view source on GitHub ↗

Creates an instance of this function. @param ex exception to be raised @param expr expression that caused the error message @return function

(final QueryException ex, final Expr expr)

Source from the content-addressed store, hash-verified

43 * @return function
44 */
45 public static StandardFunc get(final QueryException ex, final Expr expr) {
46 Util.debug(ex);
47 final Str description = Str.get(ex.getLocalizedMessage());
48 final StandardFunc sf = ERROR.get(ex.info(), ex.qname(), description);
49 sf.exprType.assign(expr.seqType());
50 return sf;
51 }
52}

Callers 15

compileOrErrorMethod · 0.95
inlineMethod · 0.95
primaryMethod · 0.95
inlineMethod · 0.95
mergeMethod · 0.95
inlineMethod · 0.95
typeCheckMethod · 0.95
optimizeMethod · 0.95
inlineMethod · 0.95
inlineMethod · 0.95
inlineMethod · 0.95
typeCheckMethod · 0.95

Calls 8

debugMethod · 0.95
getMethod · 0.95
getMethod · 0.65
infoMethod · 0.65
seqTypeMethod · 0.65
getLocalizedMessageMethod · 0.45
qnameMethod · 0.45
assignMethod · 0.45

Tested by

no test coverage detected