Examples of PluginException


Examples of org.jnode.plugin.PluginException

                    i = all.values().iterator();
                }

            }
            if (additions == 0) {
                throw new PluginException(
                    "Cycle in plugin prerequisites remaining: " + all.keySet());
            }
        }

        return list;
View Full Code Here

Examples of org.jnode.plugin.PluginException

                    i.remove();
                    change = true;
                }
            }
            if (!change) {
                throw new PluginException("Failed to resolve all descriptors: " + descriptors);
            }
        }
    }
View Full Code Here

Examples of org.jnode.plugin.PluginException

     */
    protected synchronized void registerPlugin(PluginDescriptorModel descr)
        throws PluginException {
        final String id = descr.getId();
        if (descriptorMap.containsKey(id)) {
            throw new PluginException("Duplicate plugin " + id);
        }
        descriptorMap.put(id, descr);
    }
View Full Code Here

Examples of org.joget.plugin.base.PluginException

                for (String address : tss) {
                    email.addTo(address);
                    emailToOutput += address + ", ";
                }
            } else {
                throw new PluginException("no email specified");
            }

            final String to = emailToOutput;
            final String profile = DynamicDataSourceManager.getCurrentProfile();
           
View Full Code Here

Examples of org.lilyproject.plugin.PluginException

            }
        }

        public void addPlugin(String name, T plugin) {
            if (name == null || name.trim().length() == 0) {
                throw new PluginException("Null, empty or whitespace argument: name");
            }

            if (plugin == null) {
                throw new IllegalArgumentException("Null argument: plugin");
            }

            if (!type.isAssignableFrom(plugin.getClass())) {
                throw new PluginException("Plugin does not implement its plugin type. Plugin \"" + name + "\" of type " + type.getName());
            }

            PluginEntry<T> newEntry = new PluginEntry<T>(name, plugin);

            for (PluginEntry entry : plugins) {
                if (entry.equals(newEntry)) {
                    throw new PluginException("This plugin instance is already registered. Plugin \"" + name + "\" of type " + type.getName());
                }
                if (entry.name.equals(newEntry.name)) {
                    throw new PluginException("There is already another plugin registered with this name: \"" + name + "\".");
                }
            }

            plugins.add(newEntry);
View Full Code Here

Examples of org.megatome.frame2.plugin.PluginException

   public MockPluginInterface(int startIndex) {
       this.state = startIndex;
   }

  public void destroy(ServletContext context, Map<String, String> initParams) throws PluginException {
     if (context == null) throw new PluginException("Plugin Init Exception"); //$NON-NLS-1$
     if (initParams.get("throwsDestroyParam") != null){ //$NON-NLS-1$
         this.state = STATE_THROW; // value if throw
         throw new PluginException("got throwsDestoryParam, throw for test"); //$NON-NLS-1$
     }
     this.state = STATE_DESTROY;
  }
View Full Code Here

Examples of org.megatome.frame2.plugin.PluginException

     }
     this.state = STATE_DESTROY;
  }

  public void init(ServletContext context, Map<String, String> initParams) throws PluginException {
      if (context == null) throw new PluginException("Plugin Init Exception"); //$NON-NLS-1$
      if (initParams.get("throwsParam") != null){ //$NON-NLS-1$
         throw new PluginException("got throwsParam, throw for test"); //$NON-NLS-1$
      }
     
      this.state = STATE_INIT;
  }
View Full Code Here

Examples of org.megatome.frame2.plugin.PluginException

    try {
      TemplateConfigFactory.loadTemplateFile(context, this.templateFile, configDir);
    } catch (TemplateException e) {
      LOGGER.severe(PLUGIN_INIT_ERROR + e.getMessage());
      throw new PluginException(PLUGIN_INIT_ERROR + e.getMessage(), e);
    }
  }
View Full Code Here

Examples of org.megatome.frame2.plugin.PluginException

    LOGGER.debug("CommonsValidatorPlugin:init()"); //$NON-NLS-1$
    try {
      CommonsValidatorWrapper.load(context);
    } catch (CommonsValidatorException e) {
      LOGGER.severe("CommonsValidatorPlugin not loaded : " + e); //$NON-NLS-1$
      throw new PluginException(e);
    } catch (NoClassDefFoundError e) {
      // Bug Fix: 917752
      // Throw exception when plugin is specified, but class files
      // are missing
      LOGGER.severe("CommonsValidatorPlugin not loaded : " + e); //$NON-NLS-1$
      throw new PluginException(e);
    }

  }
View Full Code Here

Examples of org.mokai.plugin.PluginException

  private void checkPluginManager() throws PluginException {
    if (pluginManager == null) {
      try {
        configure();
      } catch (Exception e) {
        throw new PluginException(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.