Examples of IseException


Examples of org.candlepin.common.exceptions.IseException

            X509CRL crl = crlFileUtil.readCRLFile(crlFile);
            crl = crlGenerator.syncCRLWithDB(crl);
            encoded = crlFileUtil.writeCRLFile(crlFile, crl);
        }
        catch (CertificateException e) {
            throw new IseException(e.getMessage(), e);
        }

        return new String(encoded);
    }
View Full Code Here

Examples of org.candlepin.common.exceptions.IseException

            crl = crlGenerator.removeEntries(crl, serials);

            crlFileUtil.writeCRLFile(crlFile,  crl);
        }
        catch (CertificateException e) {
            throw new IseException(e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.candlepin.common.exceptions.IseException

    private String getCrlFilePath() {
        String filePath = config.getString(ConfigProperties.CRL_FILE_PATH);

        if (filePath == null) {
            throw new IseException("CRL file path not defined in config file");
        }

        return filePath;
    }
View Full Code Here

Examples of org.candlepin.common.exceptions.IseException

            else {
                pk.pauseScheduler();
            }
        }
        catch (PinsetterException pe) {
            throw new IseException(i18n.tr("Error setting scheduler status"));
        }
        return getSchedulerStatus();
    }
View Full Code Here

Examples of org.candlepin.common.exceptions.IseException

            sink.emitImportCreated(owner);
            recordImportSuccess(owner, data, overrides, filename);
        }
        catch (IOException e) {
            recordImportFailure(owner, data, e, filename);
            throw new IseException(i18n.tr("Error reading export archive"), e);
        }
        // These come back with internationalized messages, so we can transfer:
        catch (SyncDataFormatException e) {
            recordImportFailure(owner, data, e, filename);
            throw new BadRequestException(e.getMessage(), e);
        }
        catch (ImporterException e) {
            recordImportFailure(owner, data, e, filename);
            throw new IseException(e.getMessage(), e);
        }
        // Grab candlepin exceptions to record the error and then rethrow
        // to pass on the http return code
        catch (CandlepinException e) {
            recordImportFailure(owner, data, e, filename);
View Full Code Here

Examples of org.candlepin.common.exceptions.IseException

        try {
            return this.mapper.writeValueAsString(mainNode);
        }
        catch (Exception e) {
            log.error("Unable to serialize objects to JSON.", e);
            throw new IseException("Unable to serialize objects to JSON.", e);
        }
    }
View Full Code Here

Examples of org.candlepin.common.exceptions.IseException

            return mapper.readValue(json, clazz);
        }
        catch (Exception e) {
            log.error("Error parsing JSON from rules into: " + clazz.getName(), e);
            log.error(json);
            throw new IseException("Unable to build object from JSON.", e);
        }
    }
View Full Code Here

Examples of org.candlepin.common.exceptions.IseException

            return mapper.readValue(json, typeref);
        }
        catch (Exception e) {
            log.error("Error parsing JSON from rules");
            log.error(json);
            throw new IseException("Unable to build object from JSON.", e);
        }
    }
View Full Code Here

Examples of org.candlepin.common.exceptions.IseException

                    // Use the correct curator (in storeMap) to look up the actual
                    // entity with the annotated argument
                    if (!storeMap.containsKey(verifyType)) {
                        log.error("No store configured to verify: " + verifyType);
                        throw new IseException(i18n.tr("Unable to verify request."));
                    }

                    List entities = new ArrayList();

                    Object argument = parameters[i];
View Full Code Here

Examples of org.candlepin.common.exceptions.IseException

    public EventSink get() {

        // These should not both be null, if so something is very wrong:
        if (requestSink != null && pinsetterSink != null) {
            log.error("Request sink and pinsetter sink are both non-null.");
            throw new IseException("Scope configuration error.");
        }

        if (requestSink != null) {
            return requestSink;
        }
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.