Examples of ManagerException


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

                    }
                } catch (RepeatConfigureException rce) {
                    throw rce;
                } catch (Exception e) {
                    logger.error("ERROR ## modify canal(" + canal.getId() + ") has an exception!");
                    throw new ManagerException(e);
                }
            }
        });

    }
View Full Code Here

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

            } else {
                canalDos = canalDao.listByMultiId(identities);
                if (canalDos.isEmpty()) {
                    String exceptionCause = "couldn't query any canal by canalIds:" + Arrays.toString(identities);
                    logger.error("ERROR ## " + exceptionCause);
                    throw new ManagerException(exceptionCause);
                }
            }
            canals = doToModel(canalDos);
        } catch (Exception e) {
            logger.error("ERROR ## query channels has an exception!");
            throw new ManagerException(e);
        }

        return canals;
    }
View Full Code Here

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

        Assert.assertNotNull(canalId);
        List<Canal> canals = listByIds(canalId);
        if (canals.size() != 1) {
            String exceptionCause = "query canalId:" + canalId + " return null.";
            logger.error("ERROR ## " + exceptionCause);
            throw new ManagerException(exceptionCause);
        }

        return canals.get(0);
    }
View Full Code Here

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

        Assert.assertNotNull(name);
        CanalDO canalDo = canalDao.findByName(name);
        if (canalDo == null) {
            String exceptionCause = "query name:" + name + " return null.";
            logger.error("ERROR ## " + exceptionCause);
            throw new ManagerException(exceptionCause);
        }

        return doToModel(canalDo);
    }
View Full Code Here

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

            canalDo.setParameters(canal.getCanalParameter());
            canalDo.setGmtCreate(canal.getGmtCreate());
            canalDo.setGmtModified(canal.getGmtModified());
        } catch (Exception e) {
            logger.error("ERROR ## change the canal Model to Do has an exception");
            throw new ManagerException(e);
        }
        return canalDo;
    }
View Full Code Here

Examples of javango.db.ManagerException

        Object value = PropertyUtils.getProperty(params, fieldName);       
        if (value != null) other.valueFilters.put(fieldName, value);
      }
    } catch (IllegalAccessException e) {
      LogFactory.getLog(HibernateQuerySet.class).error(e,e);
      throw new ManagerException(e);
    } catch (InvocationTargetException e) {
      LogFactory.getLog(HibernateQuerySet.class).error(e,e);
      throw new ManagerException(e);
    } catch (NoSuchMethodException e) {
      LogFactory.getLog(HibernateQuerySet.class).error(e,e);
      throw new ManagerException(e);
   
    return other;
  }
View Full Code Here

Examples of javango.db.ManagerException

  public T get() throws ManagerException {
    try {
      return (T)getCriteria().uniqueResult();
    } catch (HibernateException e) {
      LogFactory.getLog(HibernateQuerySet.class).error(_("Hibernate Exception 'get()' while running '%s'", this.toString()));
      throw new ManagerException(e);
    }
  }
View Full Code Here

Examples of javango.db.ManagerException

      return getCriteria().list();
    } catch (HibernateException e) {     
      LogFactory.getLog(HibernateQuerySet.class).error(_("Hibernate Exception 'list()' while running '%s'", this.toString()));
      LogFactory.getLog(HibernateQuerySet.class).error(e,e);
      LogFactory.getLog(HibernateQuerySet.class).error(e,e.getCause());
      throw new ManagerException("Unable to run query");
    }
  }
View Full Code Here

Examples of javango.db.ManagerException

    if (_count == null) {
      try {
        _count = new Long(hibernateUtil.doCount(getRawCriteria().getExecutableCriteria(hibernateUtil.getSession())));
      } catch (HibernateException e) {
        LogFactory.getLog(HibernateQuerySet.class).error(_("Hibernate Exception while running %s", this.toString()));
        throw new ManagerException(e);
      }
    }
    return _count;
  }
View Full Code Here

Examples of javango.db.ManagerException

  public QuerySet<T> all() throws ManagerException {
    try {
      return new HibernateQuerySet<T>(hibernateUtil, model);
    } catch (Exception e) {
      throw new ManagerException(e);
    }
  }
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.