Examples of reportError()


Examples of org.pdf4j.saxon.PreparedStylesheet.reportError()

        try {
            if (pss == null) {
                // it is null before the stylesheet has been fully built
                throw error;
            } else {
                pss.reportError(error);
            }
        } catch (TransformerException err2) {
            if (err2.getLocator() == null) {
                err2.setLocator(this);
            }
View Full Code Here

Examples of play.Configuration.reportError()

            }

            if (StringUtils.isBlank(dbName)) {
                dbName = morphiaConf.getString(ConfigKey.DB_NAME.getKey());
                if (StringUtils.isBlank(dbName)) {
                    throw morphiaConf.reportError(ConfigKey.DB_NAME.getKey(), "Missing Morphia configuration", null);
                }
            }

            morphia = new Morphia();
            // To prevent problem during hot-reload
View Full Code Here

Examples of play.Configuration.reportError()

            if (StringUtils.isBlank(password)) {
                password = morphiaConf.getString(ConfigKey.DB_PASSWORD.getKey());
            }

            if (StringUtils.isNotBlank(username) ^ StringUtils.isNotBlank(password)) {
                throw morphiaConf.reportError(ConfigKey.DB_NAME.getKey(), "Missing username or password", null);
            }

            // Create datastore
            if (StringUtils.isNotBlank(username) && StringUtils.isNotBlank(password)) {
                ds = morphia.createDatastore(mongo, dbName, username, password.toCharArray());
View Full Code Here

Examples of play.Configuration.reportError()

                    config.setName(key);
                    config.loadFromProperties();
                    try {
                        config.setDataSource(new WrappingDatasource(dbApi.getDatabase(key).getDataSource()));
                    } catch(Exception e) {
                        throw ebeanConf.reportError(
                            key,
                            e.getMessage(),
                            e
                        );
                    }
View Full Code Here

Examples of play.Configuration.reportError()

                    }
                    for (String clazz: classes) {
                        try {
                            config.addClass(Class.forName(clazz, true, environment.classLoader()));
                        } catch (Throwable e) {
                            throw ebeanConf.reportError(
                                key,
                                "Cannot register class [" + clazz + "] in Ebean server",
                                e
                            );
                        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.