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

Method matches

basex-core/src/main/java/org/basex/query/expr/Catch.java:162–168  ·  view source on GitHub ↗

Checks if one of the specified errors match the thrown error. @param ex caught exception @return result of check

(final QueryException ex)

Source from the content-addressed store, hash-verified

160 * @return result of check
161 */
162 boolean matches(final QueryException ex) {
163 final QNm name = ex.qname();
164 for(final Test test : tests) {
165 if(test instanceof final NameTest nt && nt.matches(name)) return true;
166 }
167 return false;
168 }
169
170 @Override
171 public boolean accept(final ASTVisitor visitor) {

Callers

nothing calls this directly

Calls 1

qnameMethod · 0.45

Tested by

no test coverage detected