result.setBinding(bindingName, bindingValue);
}
}
}
catch (UnsupportedQueryLanguageException e) {
ErrorInfo errInfo = new ErrorInfo(ErrorType.UNSUPPORTED_QUERY_LANGUAGE, queryLn.getName());
throw new ClientHTTPException(SC_BAD_REQUEST, errInfo.toString());
}
catch (MalformedQueryException e) {
ErrorInfo errInfo = new ErrorInfo(ErrorType.MALFORMED_QUERY, e.getMessage());
throw new ClientHTTPException(SC_BAD_REQUEST, errInfo.toString());
}
catch (RepositoryException e) {
logger.error("Repository error", e);
response.sendError(SC_INTERNAL_SERVER_ERROR);
}