Package org.grouplens.lenskit.core

Examples of org.grouplens.lenskit.core.RecommenderConfigurationException


                sat = csat.getSatisfaction();
            }
            logger.error("placeholder {} not removed", csat.getSatisfaction());
        }
        if (sat != null) {
            throw new RecommenderConfigurationException("placeholder " + sat + " not removed");
        }
    }
View Full Code Here


        logger.info("loading script from {}", source.getName());
        LenskitConfigScript script;
        try {
            script = (LenskitConfigScript) shell.parse(source);
        } catch (GroovyRuntimeException e) {
            throw new RecommenderConfigurationException("Error loading Groovy script", e);
        }
        script.setDelegate(new LenskitConfigDSL(this));;
        return script;
    }
View Full Code Here

        try {
            GroovyUtils.callWithDelegate(block, delegate);
        } catch (GroovyRuntimeException e) {
            // this quite possibly wraps an exception we want to throw
            if (e.getClass().equals(GroovyRuntimeException.class) && e.getCause() != null) {
                throw new RecommenderConfigurationException("Error evaluating Groovy block",
                                                            e.getCause());
            } else {
                throw new RecommenderConfigurationException("Error evaluating Groovy block", e);
            }
        } catch (RuntimeException e) {
            throw new RecommenderConfigurationException("Error evaluating Groovy block", e);
        }
    }
View Full Code Here

            Set<String> packages = delegate.getConfigLoader().getDirectory().getPackages(name);
            logger.error("Cannot resolve class or property " + name);
            if (!packages.isEmpty()) {
                logger.info("Did you intend to import it from {}?", Joiner.on(", ").join(packages));
            }
            throw new RecommenderConfigurationException("error configuring recommender", e);
        } catch (Exception ex) {
            throw new RecommenderConfigurationException("error configuring recommender", ex);
        } finally {
            setDelegate(old);
        }
    }
View Full Code Here

            Set<String> packages = delegate.getConfigLoader().getDirectory().getPackages(name);
            logger.error("Cannot resolve class or property " + name);
            if (!packages.isEmpty()) {
                logger.info("Did you intend to import it from {}?", Joiner.on(", ").join(packages));
            }
            throw new RecommenderConfigurationException("error configuring recommender", e);
        } catch (Exception ex) {
            throw new RecommenderConfigurationException("error configuring recommender", ex);
        }
        return delegate.getConfig();
    }
View Full Code Here

TOP

Related Classes of org.grouplens.lenskit.core.RecommenderConfigurationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.