Examples of RepeatConfigureException


Examples of com.alibaba.otter.manager.biz.common.exceptions.RepeatConfigureException

                    if (!pipelineDao.checkUnique(pipelineDo)) {
                        String exceptionCause = "exist the same name pipeline under the channel("
                                                + pipelineDo.getChannelId() + ") in the database.";
                        logger.warn("WARN ## " + exceptionCause);
                        throw new RepeatConfigureException(exceptionCause);
                    }
                    pipelineDao.insert(pipelineDo);

                    List<PipelineNodeRelationDO> pipelineNodeRelationDos = new ArrayList<PipelineNodeRelationDO>();
View Full Code Here

Examples of com.alibaba.otter.manager.biz.common.exceptions.RepeatConfigureException

            if (!pipelineDao.checkUnique(pipelineDo)) {
                String exceptionCause = "exist the same name pipeline under the channel(" + pipelineDo.getChannelId()
                                        + ") in the database.";
                logger.warn("WARN ## " + exceptionCause);
                throw new RepeatConfigureException(exceptionCause);
            }

            pipelineNodeRelationDao.deleteByPipelineId(pipelineDo.getId());

            pipelineDao.update(pipelineDo);
View Full Code Here

Examples of com.alibaba.otter.manager.biz.common.exceptions.RepeatConfigureException

                    if (!pipelineDao.checkUnique(pipelineDo)) {
                        String exceptionCause = "exist the same name pipeline under the channel("
                                                + pipelineDo.getChannelId() + ") in the database.";
                        logger.warn("WARN ## " + exceptionCause);
                        throw new RepeatConfigureException(exceptionCause);
                    }
                    pipelineDao.insert(pipelineDo);

                    List<PipelineNodeRelationDO> pipelineNodeRelationDos = new ArrayList<PipelineNodeRelationDO>();
View Full Code Here

Examples of com.alibaba.otter.manager.biz.common.exceptions.RepeatConfigureException

            if (!pipelineDao.checkUnique(pipelineDo)) {
                String exceptionCause = "exist the same name pipeline under the channel(" + pipelineDo.getChannelId()
                                        + ") in the database.";
                logger.warn("WARN ## " + exceptionCause);
                throw new RepeatConfigureException(exceptionCause);
            }

            pipelineNodeRelationDao.deleteByPipelineId(pipelineDo.getId());

            pipelineDao.update(pipelineDo);
View Full Code Here

Examples of com.alibaba.otter.manager.biz.common.exceptions.RepeatConfigureException

                    channelDo.setId(0L);

                    if (!channelDao.checkUnique(channelDo)) {
                        String exceptionCause = "exist the same name channel in the database.";
                        logger.warn("WARN ## " + exceptionCause);
                        throw new RepeatConfigureException(exceptionCause);
                    }
                    channelDao.insert(channelDo);
                    arbitrateManageService.channelEvent().init(channelDo.getId());

                } catch (RepeatConfigureException rce) {
View Full Code Here

Examples of com.alibaba.otter.manager.biz.common.exceptions.RepeatConfigureException

            if (channelDao.checkUnique(channelDo)) {
                channelDao.update(channelDo);
            } else {
                String exceptionCause = "exist the same name channel in the database.";
                logger.warn("WARN ## " + exceptionCause);
                throw new RepeatConfigureException(exceptionCause);
            }

        } catch (RepeatConfigureException rce) {
            throw rce;
        } catch (Exception e) {
View Full Code Here

Examples of com.alibaba.otter.manager.biz.common.exceptions.RepeatConfigureException

        try {
            UserDO userDo = userDao.insertUser(modelToDo(user));
            if (userDo.getId() == 0) {
                String exceptionCause = "exist the same name user in the database.";
                logger.warn("WARN ## " + exceptionCause);
                throw new RepeatConfigureException(exceptionCause);
            }
        } catch (RepeatConfigureException rce) {
            throw rce;
        } catch (Exception e) {
            logger.error("ERROR ## create user has an exception!");
View Full Code Here

Examples of com.alibaba.otter.manager.biz.common.exceptions.RepeatConfigureException

            if (userDao.chackUnique(UserDo)) {
                userDao.updateUser(UserDo);
            } else {
                String exceptionCause = "exist the same name user in the database.";
                logger.warn("WARN ## " + exceptionCause);
                throw new RepeatConfigureException(exceptionCause);
            }
        } catch (RepeatConfigureException rce) {
            throw rce;
        } catch (Exception e) {
            logger.error("ERROR ## create user has an exception!");
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.