Examples of BuilderException


Examples of ca.grimoire.jnoise.config.BuilderException

   * @see #setWhite(double)
   * @see ModuleBuilder#createModule()
   */
  public Checker createModule () throws BuilderException {
    if (!blackSet)
      throw new BuilderException ("No black value for checker module.");
    if (!whiteSet)
      throw new BuilderException ("No white value for checker module.");

    return new Checker (black, white);
  }
View Full Code Here

Examples of com.google.k2crypto.exceptions.BuilderException

      // use the key generator to generate a key pair and return it
      return (keyGenerator.generateKeyPair());

    } catch (GeneralSecurityException e) {
      // catch and propagate any exceptions
      throw new BuilderException("Failed to build DSA key pair", e);
    }
  }
View Full Code Here

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

            builder.endMenu();
           
            return builder.getCompletedMenuModel();
        } catch (MissingResourceException e) {
            // work around bug in junit?
            throw new BuilderException(e);
        }
    }
View Full Code Here

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

     * @param clazz the class of item that cannot be a child of the current
     *              entity
     * @throws BuilderException the exception required
     */
    private void reportBadParent(Class clazz) throws BuilderException {
        throw new BuilderException(exceptionLocalizer.format(
                    "menu-entity-child-invalid",
                    new Object[] {
                        clazz.getName(),
                        (currentEntity != null ?
                            currentEntity.getClass().getName() :
View Full Code Here

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

     * @param name the name of attribute that cannot be set on the current
     *             entity
     * @throws BuilderException the exception required
     */
    private void reportBadParent(String name) throws BuilderException {
        throw new BuilderException(exceptionLocalizer.format(
                    "attribute-not-settable",
                    new Object[] {
                        name,
                        (currentEntity != null ?
                            currentEntity.getClass().getName() :
View Full Code Here

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

     * message when unbalanced calls to start/end methods are detected.
     *
     * @throws BuilderException the exception required
     */
    private void reportUnbalancedStartEnd() throws BuilderException {
        throw new BuilderException(
                    exceptionLocalizer.format("menu-model-builder-unbalanced"));
    }
View Full Code Here

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

     *
     * @param clazz the type of entity that is not allowed
     * @throws BuilderException the exception required
     */
    private void reportTypeNotAllowed(Class clazz) throws BuilderException {
        throw new BuilderException(
                    exceptionLocalizer.format("menu-model-entity-invalid",
                                              clazz.getName()));
    }
View Full Code Here

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

     * @param cause an optional causitive exception
     * @throws BuilderException the exception required
     */
    private void reportBadValue(String name,
                                Throwable cause) throws BuilderException {
        throw new BuilderException(exceptionLocalizer.format(
                    "menu-model-missing-attribute",
                    new Object[] {
                        name,
                        (currentEntity != null ?
                            currentEntity.getClass().getName() :null)}),
View Full Code Here

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

     *
     * @param clazz the class of item missing
     * @throws BuilderException the exception required
     */
    private void reportMissing(Class clazz) throws BuilderException {
        throw new BuilderException(
                    exceptionLocalizer.format("menu-model-error",
                                              clazz.getName()));
    }
View Full Code Here

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

     */
    private void checkGroup(MenuItemGroup group) throws BuilderException {
        if (group != null) {
            if (group.getSize() == 0) {
                // Must have at least one menu item
                throw new BuilderException(
                            exceptionLocalizer.format("menu-item-required"));
            }
        }
    }
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.