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)
| 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 | } |
no test coverage detected