Examples of GeneratorException


Examples of org.castor.ddlgen.GeneratorException

     * {@inheritDoc}
     */
    public final void merge(final TypeInfo type) throws GeneratorException {
        if (type == null) {
            LOG.error("Merge table: type is null");
            throw new GeneratorException("Merge table: type is null");
        }
       
        if (_jdbcType == null || _jdbcType.equalsIgnoreCase(type.getJdbcType())) {
            LOG.warn("Merge table: types have different jdbc name");
        }
View Full Code Here

Examples of org.castor.ddlgen.GeneratorException

     */
    public String toDDL(final Field field) throws GeneratorException {
        Integer length = field.getLength();
        if (length == null) { length = _defaultLength; }
        if (length == null) {
            throw new GeneratorException(
                    "Reguired length attribute missing for field '" + field.getName()
                    + "' of type '" + getJdbcType() + "'");
        }
       
        StringBuffer sb = new StringBuffer();
View Full Code Here

Examples of org.openbp.cockpit.generator.GeneratorException

                      break;
                    }
                  }

                  if (page == null)
                    throw new GeneratorException("Class '" + pageClassName
                      + "' does not have a (GeneratorWizard) constructor.");
                }
                catch (Exception e)
                {
                  String msg = LogUtil.error(getClass(), "Cannot instantiate page class $0.",
                    pageClassName, e);
                  String exMsg = ExceptionUtil.getNestedMessage(e);
                  throw new GeneratorException(exMsg != null ? exMsg : msg);
                }
              }

              if (page != null)
              {
View Full Code Here

Examples of rocket.generator.rebind.GeneratorException

  @Override
  public OutputStream createResource(final String filename) {
    try {
      return this.createResource0(filename);
    } catch (final UnableToCompleteException caught) {
      throw new GeneratorException("Unable to retrieve an OutputStream for the resource \"" + filename + "\".");
    }
  }
View Full Code Here

Examples of speculoos.beans.GeneratorException

      iftpl.setAttribute("pack", getPack());
     
      setCommons(iftpl);
      output.write(iftpl.toString());
    } catch (IntrospectionException e) {
      throw new GeneratorException(getName()
          + ": cannot extract javabeans information from " + cls, e);
    } catch (IOException e) {
      throw new GeneratorException(getName()
          + ": error while writing to output stream for " + cls, 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.