Package com.octo.captcha.engine

Examples of com.octo.captcha.engine.CaptchaEngineException


  }

  public void setFactories(CaptchaFactory[] factories)
      throws CaptchaEngineException {
    if (factories == null || factories.length == 0) {
      throw new CaptchaEngineException(
          "impossible to set null or empty factories");
    }

    for (CaptchaFactory factory : factories) {
      if (!ImageCaptchaFactory.class.isAssignableFrom(factory.getClass())) {
        throw new CaptchaEngineException(
            "This factory is not an image captcha factory "
                + factory.getClass());
      }

    }
View Full Code Here

TOP

Related Classes of com.octo.captcha.engine.CaptchaEngineException

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.