Package com.crashnote.core.model.excp

Examples of com.crashnote.core.model.excp.CrashnoteException


        if (!started) {
            started = true;

            // make sure there is at least one connector
            if (connectors.isEmpty())
                throw new CrashnoteException("unable to start: no log connector could be initialized");
        }

        return started;
    }
View Full Code Here


        if (!started) {
            started = true;

            // make sure there is at least one connector
            if (connectors.isEmpty())
                throw new CrashnoteException("unable to start: no log connector could be initialized");
        }

        return started;
    }
View Full Code Here

    protected boolean getBool(final String name) {
        try {
            return conf.getBoolean(getConfName(name));
        } catch (ConfigException.Missing e) {
            throw new CrashnoteException("can not find config key '" + name + "'", e);
        } catch (ConfigException.WrongType e) {
            throw new CrashnoteException("type of config key '" + name + "' is not 'bool'", e);
        }
    }
View Full Code Here

    protected int getInt(final String name) {
        try {
            return conf.getInt(getConfName(name));
        } catch (ConfigException.Missing e) {
            throw new CrashnoteException("can not find config key '" + name + "'", e);
        } catch (ConfigException.WrongType e) {
            throw new CrashnoteException("type of config key '" + name + "' is not 'intl'", e);
        }
    }
View Full Code Here

    protected Long getMillis(final String name) {
        try {
            return conf.getMilliseconds(getConfName(name));
        } catch (ConfigException.Missing e) {
            throw new CrashnoteException("can not find config key '" + name + "'", e);
        } catch (ConfigException.BadValue e) {
            throw new CrashnoteException("type of config key '" + name + "' is not a duration", e);
        }
    }
View Full Code Here

    protected String getString(final String name) {
        try {
            return conf.getString(getConfName(name));
        } catch (ConfigException.Missing e) {
            throw new CrashnoteException("can not find config key '" + name + "'", e);
        } catch (ConfigException.WrongType e) {
            throw new CrashnoteException("type of config key '" + name + "' is not 'string'", e);
        }
    }
View Full Code Here

    protected List<String> getStrings(final String name) {
        try {
            return conf.getStringList(getConfName(name));
        } catch (ConfigException.Missing e) {
            throw new CrashnoteException("can not find config key '" + name + "'", e);
        } catch (ConfigException.WrongType e) {
            throw new CrashnoteException("config key '" + name + "' is not a list of strings", e);
        }
    }
View Full Code Here

    protected boolean getBool(final String name) {
        try {
            return conf.getBoolean(getConfName(name));
        } catch (ConfigException.Missing e) {
            throw new CrashnoteException("can not find config key '" + name + "'", e);
        } catch (ConfigException.WrongType e) {
            throw new CrashnoteException("type of config key '" + name + "' is not 'bool'", e);
        }
    }
View Full Code Here

    protected int getInt(final String name) {
        try {
            return conf.getInt(getConfName(name));
        } catch (ConfigException.Missing e) {
            throw new CrashnoteException("can not find config key '" + name + "'", e);
        } catch (ConfigException.WrongType e) {
            throw new CrashnoteException("type of config key '" + name + "' is not 'intl'", e);
        }
    }
View Full Code Here

    protected Long getMillis(final String name) {
        try {
            return conf.getMilliseconds(getConfName(name));
        } catch (ConfigException.Missing e) {
            throw new CrashnoteException("can not find config key '" + name + "'", e);
        } catch (ConfigException.BadValue e) {
            throw new CrashnoteException("type of config key '" + name + "' is not a duration", e);
        }
    }
View Full Code Here

TOP

Related Classes of com.crashnote.core.model.excp.CrashnoteException

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.