Examples of RepeatConfigureException


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

            dataMediaSourceDo.setId(0L);

            if (!dataMediaSourceDao.checkUnique(dataMediaSourceDo)) {
                String exceptionCause = "exist the same name source in the database.";
                logger.warn("WARN ## " + exceptionCause);
                throw new RepeatConfigureException(exceptionCause);
            }

            dataMediaSourceDao.insert(dataMediaSourceDo);

        } catch (RepeatConfigureException rce) {
View Full Code Here

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

            if (dataMediaSourceDao.checkUnique(dataMediaSourceDo)) {
                dataMediaSourceDao.update(dataMediaSourceDo);
            } else {
                String exceptionCause = "exist the same name source in the database.";
                logger.warn("WARN ## " + exceptionCause);
                throw new RepeatConfigureException(exceptionCause);
            }
        } catch (RepeatConfigureException rce) {
            throw rce;
        } catch (Exception e) {
            logger.error("ERROR ## modify dataMediaSource has an exception!");
View Full Code Here

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

                    CanalDO canalDO = modelToDo(canal);
                    canalDO.setId(0L);
                    if (!canalDao.checkUnique(canalDO)) {
                        String exceptionCause = "exist the same repeat canal in the database.";
                        logger.warn("WARN ## " + exceptionCause);
                        throw new RepeatConfigureException(exceptionCause);
                    }
                    canalDao.insert(canalDO);
                    canal.setId(canalDO.getId());
                } catch (RepeatConfigureException rce) {
                    throw rce;
View Full Code Here

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

                    if (canalDao.checkUnique(canalDo)) {
                        canalDao.update(canalDo);
                    } else {
                        String exceptionCause = "exist the same repeat canal in the database.";
                        logger.warn("WARN ## " + exceptionCause);
                        throw new RepeatConfigureException(exceptionCause);
                    }
                } catch (RepeatConfigureException rce) {
                    throw rce;
                } catch (Exception e) {
                    logger.error("ERROR ## modify canal(" + canal.getId() + ") has an exception!");
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

                    NodeDO nodeDo = modelToDo(node);
                    nodeDo.setId(0L);
                    if (!nodeDao.checkUnique(nodeDo)) {
                        String exceptionCause = "exist the same repeat node in the database.";
                        logger.warn("WARN ## " + exceptionCause);
                        throw new RepeatConfigureException(exceptionCause);
                    }
                    nodeDao.insert(nodeDo);

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

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

                    if (nodeDao.checkUnique(nodeDo)) {
                        nodeDao.update(nodeDo);
                    } else {
                        String exceptionCause = "exist the same repeat node in the database.";
                        logger.warn("WARN ## " + exceptionCause);
                        throw new RepeatConfigureException(exceptionCause);
                    }
                } catch (RepeatConfigureException rce) {
                    throw rce;
                } catch (Exception e) {
                    logger.error("ERROR ## modify node(" + node.getId() + ") has an exception!");
View Full Code Here

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

            DataMediaDO dataMediaDo = modelToDo(dataMedia);
            dataMediaDo.setId(0L);
            if (!dataMediaDao.checkUnique(dataMediaDo)) {
                String exceptionCause = "exist the same name dataMedia in the database.";
                logger.warn("WARN ## " + exceptionCause);
                throw new RepeatConfigureException(exceptionCause);
            }

            dataMediaDao.insert(dataMediaDo);
        } catch (RepeatConfigureException rce) {
            throw rce;
View Full Code Here

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

            if (dataMediaDao.checkUnique(dataMediaDo)) {
                dataMediaDao.update(dataMediaDo);
            } else {
                String exceptionCause = "exist the same name dataMedia in the database.";
                logger.warn("WARN ## " + exceptionCause);
                throw new RepeatConfigureException(exceptionCause);
            }
        } catch (RepeatConfigureException rce) {
            throw rce;
        } catch (Exception e) {
            logger.error("ERROR ## modify dataMedia 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.