Package org.candlepin.common.exceptions

Examples of org.candlepin.common.exceptions.ServiceUnavailableException


        }
        catch (Exception e) {
            if (log.isDebugEnabled()) {
                log.debug("Error getting principal " + e);
            }
            throw new ServiceUnavailableException(i18n
                .tr("Error contacting user service"));
        }
        return null;
    }
View Full Code Here


    private JobStatus scheduleJob(JobDetail detail) {
        try {
            return this.pinsetterKernel.scheduleSingleJob(detail);
        }
        catch (PinsetterException e) {
            throw new ServiceUnavailableException("Error scheduling refresh job.", e);
        }
    }
View Full Code Here

    }

    @Override
    public void activateSubscription(Consumer consumer, String email,
        String emailLocale) {
        throw new ServiceUnavailableException(
            i18n.tr("Standalone candlepin does not support redeeming a subscription."));
    }
View Full Code Here

            }
            return "";
        }
        catch (CuratorException e) {
            log.error("couldn't read rules file", e);
            throw new ServiceUnavailableException(i18n.tr("couldn't read rules file"));
        }
    }
View Full Code Here

        try {
            statisticCurator.executeStatisticRun();
        }
        catch (HibernateException e) {
            log.error("Cannot store: ", e);
            throw new ServiceUnavailableException(i18n.tr("couldn't generate statistics"));
        }
        log.info("Successful statistic generation");
    }
View Full Code Here

TOP

Related Classes of org.candlepin.common.exceptions.ServiceUnavailableException

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.