Checks if one of the specified errors match the thrown error. @param ex caught exception @return result of check
(final QueryException ex)
| 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) { |