Examples of BuilderException


Examples of com.volantis.mcs.protocols.menu.builder.BuilderException

                    reportBadValue("href", null);
                }
            } catch (BuilderException e) {
                throw e;
            } catch (Exception e) {
                throw new BuilderException(e);
            }

            checkLabel(item.getLabel(), true);
        }
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.menu.builder.BuilderException

        if (entry != null) {
            try {
                checkNestedPanes(pane);
                entry.setPane(pane);
            } catch (Exception e) {
                throw new BuilderException(e);
            }
        } else {
            reportBadParent("pane");
        }
    }
View Full Code Here

Examples of heart.exceptions.BuilderException

    private Type type;
   
    public Attribute build() throws BuilderException, NotInTheDomainException{
      if(name == null || XTTClass == null || type == null){
        throw new BuilderException("Error while building Attribute ("+name+"). Name, class, or type was not defined.");
      }else{
        return new Attribute(this);
      }
    }
View Full Code Here

Examples of org.apache.batik.bridge.BuilderException

                gvtChildList.add(gn);
            } else if (childGVTNode != null) {
                // we have to remove the graphics node if it has been added
                gvtChildList.remove(childGVTNode);
            }
            throw new BuilderException(e, ex.getMessage());
        } catch (DOMException ex) {
            if (childGVTNode != null) {
                // we have to remove the graphics node if it has been added
                gvtChildList.remove(childGVTNode);
            }
            throw new BuilderException(e, ex.getMessage());
        }
    }
View Full Code Here

Examples of org.apache.ibatis.builder.BuilderException

    private SqlNode getDefaultSqlNode(List<SqlNode> defaultSqlNodes) {
      SqlNode defaultSqlNode = null;
      if (defaultSqlNodes.size() == 1) {
        defaultSqlNode = defaultSqlNodes.get(0);
      } else if (defaultSqlNodes.size() > 1) {
        throw new BuilderException("Too many default (otherwise) elements in choose statement.");
      }
      return defaultSqlNode;
    }
View Full Code Here

Examples of org.apache.ibatis.builder.BuilderException

    this.parser = parser;
  }
 
  public Configuration parse() {
    if (parsed) {
      throw new BuilderException("Each MapperConfigParser can only be used once.");
    }
    parsed = true;
    parseConfiguration(parser.evalNode("/configuration"));
    return configuration;
  }
View Full Code Here

Examples of org.apache.ibatis.builder.BuilderException

      settingsElement(root.evalNode("settings"));
      environmentsElement(root.evalNode("environments"));
      typeHandlerElement(root.evalNode("typeHandlers"));
      mapperElement(root.evalNode("mappers"));
    } catch (Exception e) {
      throw new BuilderException("Error parsing SQL Mapper Configuration. Cause: " + e, e);
    }
  }
View Full Code Here

Examples of org.apache.ibatis.builder.BuilderException

            typeAliasRegistry.registerAlias(clazz);
          } else {
            typeAliasRegistry.registerAlias(alias, clazz);
          }
        } catch (ClassNotFoundException e) {
          throw new BuilderException("Error registering typeAlias for '" + alias + "'. Cause: " + e, e);
        }
      }
    }
  }
View Full Code Here

Examples of org.apache.ibatis.builder.BuilderException

    if (context != null) {
      Properties defaults = context.getChildrenAsProperties();
      String resource = context.getStringAttribute("resource");
      String url = context.getStringAttribute("url");
      if (resource != null && url != null) {
        throw new BuilderException("The properties element cannot specify both a URL and a resource based property file reference.  Please specify one or the other.");
      }
      if (resource != null) {
        defaults.putAll(Resources.getResourceAsProperties(resource));
      } else if (url != null) {
        defaults.putAll(Resources.getUrlAsProperties(url));
View Full Code Here

Examples of org.apache.ibatis.builder.BuilderException

      Properties props = context.getChildrenAsProperties();
      // Check that all settings are known to the configuration class
      MetaClass metaConfig = MetaClass.forClass(Configuration.class);
      for (Object key : props.keySet()) {
        if (!metaConfig.hasSetter(String.valueOf(key))) {
          throw new BuilderException("The setting " + key + " is not known.  Make sure you spelled it correctly (case sensitive).");
        }
      }
      configuration.setAutoMappingBehavior(AutoMappingBehavior.valueOf(stringValueOf(props.getProperty("autoMappingBehavior"), "PARTIAL")));
      configuration.setCacheEnabled(booleanValueOf(props.getProperty("cacheEnabled"), true));
      configuration.setLazyLoadingEnabled(booleanValueOf(props.getProperty("lazyLoadingEnabled"), false));
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.