Package org.dmlite.exception

Examples of org.dmlite.exception.DmException


   *            XML element
   * @throws dmLite
   *             exception if there is a problem
   */
  protected void fill(Element element) throws DmException {
    throw new DmException("A model configuration cannot be saved.");
  }
View Full Code Here


        neighborsConfig.getXmlNeighbors().load(neighborsChild);
      }
    } catch (Exception e) {
      log.error("=== Problem with XmlConceptConfig.load: "
          + element.getName() + " === " + e.getMessage());
      throw new DmException(e.getMessage());
    }
  }
View Full Code Here

   *            XML element
   * @throws dmLite
   *             exception if there is a problem
   */
  protected void fill(Element element) throws DmException {
    throw new DmException("A concept configuration cannot be saved.");
  }
View Full Code Here

        neighborConfig.setAbsorb(absorb);
      }
    } catch (Exception e) {
      log.error("=== Problem with XmlNeighborConfig.load: "
          + element.getName() + " === " + e.getMessage());
      throw new DmException(e.getMessage());
    }

  }
View Full Code Here

   *            XML element
   * @throws dmLite
   *             exception if there is a problem
   */
  protected void fill(Element element) throws DmException {
    throw new DmException("A neighbor configuration cannot be saved.");
  }
View Full Code Here

            }
          }
        };
        add(emptyLink);
      } else {
        throw new DmException(
            "The property is not reference or the property is required: "
                + baseEntityPropertyConfig.getCode());
      }
    } catch (DmException e) {
      log.error("Error in LookupEmptyPanel: "
View Full Code Here

      Object object = Reflector.getInstance(constructor, domainModel);
      entity = (IEntity) object;
      if (entity == null) {
        String error = "Error in ModelMeta.createEntities: "
            + entityClassName;
        throw new DmException(error);
      }
      ConceptConfig conceptConfig = entity.getConceptConfig();
      if (conceptConfig != null) {
        PropertiesConfig propertiesConfig = conceptConfig
            .getPropertiesConfig();
        for (IEntity config : propertiesConfig) {
          PropertyConfig propertyConfig = (PropertyConfig) config;
          if (propertyConfig.getDefaultValue() != null) {
            String propertyCode = propertyConfig.getCode();
            Object property = entity.getProperty(propertyCode);
            setPropertyDefaultValue(entity, propertyConfig,
                property);
          }
        }
      }
    } catch (Exception e) {
      String error = "Error in ModelMeta.createEntity: "
          + entityClassName;
      log.error(error + " === " + e.getMessage());
      throw new DmException(error);
    }
    return entity;
  }
View Full Code Here

      Object object = Reflector.getInstance(constructor, domainModel);
      entities = (IEntities) object;
      if (entities == null) {
        String error = "Error in ModelMeta.createEntities: "
            + entitiesClassName;
        throw new DmException(error);
      }
    } catch (Exception e) {
      String error = "Error in ModelMeta.createEntities: "
          + entitiesClassName;
      log.error(error + " === " + e.getMessage());
      throw new DmException(error);
    }
    return entities;
  }
View Full Code Here

        emailConfig.setPassword(password);
      }
    } catch (Exception e) {
      log.error("=== Problem with XmlEmailConfig.load: "
          + element.getName() + " === " + e.getMessage());
      throw new DmException(e.getMessage());
    }
  }
View Full Code Here

   *            XML element
   * @throws dmLite
   *             exception if there is a problem
   */
  protected void fill(Element element) throws DmException {
    throw new DmException("An email configuration cannot be saved.");
  }
View Full Code Here

TOP

Related Classes of org.dmlite.exception.DmException

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.