Examples of ActionException


Examples of ca.nengo.ui.lib.actions.ActionException

            } catch (InvocationTargetException e) {
                e.getTargetException().printStackTrace();
            } catch (Exception e) {
                e.printStackTrace();
                throw new ActionException("Could not apply layout: " + e.getMessage(), e);
            }

            layout.initialize(getLayoutBounds());

            if (layout.isIncremental()) {
View Full Code Here

Examples of cero.games.ActionException

   * @inheritDoc
   */
  public void playerActed(ActionEvent event) throws ActionException {
    this.event = event;
    if (!canAct(event))
      throw new ActionException(
          "This action can't be played that way. Action : "
              + this.getClass().getName() + ", event : "
              + event.toString());
    if (event.getCards() != null && !event.getCards().isEmpty()) {
      if (event.getZoneFrom() == null)
        throw new ActionException("Cards must come from a zone");
      else if (!event.getZoneFrom().getSortedList().containsAll(
          event.getCards()))
        throw new ActionException(
            "Cards must come from the \"from\" zone");
    }
  }
View Full Code Here

Examples of cero.games.ActionException

  }

  @Override
  public void playerActed(ActionEvent event) throws ActionException {
    if (event.getCards().size() != 1)
      throw new ActionException("You must play exactly one card");
    super.playerActed(event);
  }
View Full Code Here

Examples of cero.games.ActionException

    }
  }

  private void validateEvent(ActionEvent event) throws ActionException {
    if (event.getCards() != null && event.getCards().size() != 0)
      throw new ActionException("You can't define the card you want to pick");
    if (event.getZoneFrom() != event.getGame().getZones().get("Stock"))
      throw new ActionException(
          "You're supposed to pick cards from the stock zone");
    if (event.getZoneTo() != event.getPlayer().getZones().get("Hand"))
      throw new ActionException(
          "You're supposed to pick cards to your hand");
  }
View Full Code Here

Examples of cero.games.ActionException

  @Override
  public void playerActed(ActionEvent event) throws ActionException {
    if (event.getCards() != null)
      if (event.getCards().size() != 1)
        throw new ActionException("You must play exactly one card");
    super.playerActed(event);
  }
View Full Code Here

Examples of ch.entwine.weblounge.common.site.ActionException

   */
  protected void include(WebloungeRequest request, WebloungeResponse response,
      PageletRenderer renderer, Pagelet data) throws ActionException {
    if (renderer == null) {
      String msg = "The renderer passed to include in action '" + this + "' was <null>!";
      throw new ActionException(new IllegalArgumentException(msg));
    }

    if (data != null)
      request.setAttribute(WebloungeRequest.PAGELET, data);

View Full Code Here

Examples of ch.qos.logback.core.joran.spi.ActionException

      ec.pushObject(definer);
    } catch (Exception oops) {
      inError = true;
      addError("Could not create an PropertyDefiner of type [" + className
          + "].", oops);
      throw new ActionException(oops);
    }
  }
View Full Code Here

Examples of com.gwtplatform.dispatch.shared.ActionException

      final ExecutionContext context) throws ActionException {
    try {
      userDao.get().logoutSessionUser();
      return null;
    } catch (Exception cause) {
      throw new ActionException(cause);
    }
  }
View Full Code Here

Examples of com.liferay.portal.kernel.events.ActionException

  public void run(String[] ids) throws ActionException {
    try {
      doRun(GetterUtil.getLong(ids[0]));
    }
    catch (Exception e) {
      throw new ActionException(e);
    }
  }
View Full Code Here

Examples of com.liferay.portal.struts.ActionException

            isCMSOwner = true;
            break;
          }
        }
        if(!isCMSOwner){
          throw new ActionException(WebKeys.USER_PERMISSIONS_EXCEPTION);
        }
      }else{
        throw new ActionException(WebKeys.USER_PERMISSIONS_EXCEPTION);
     
         
    }

    // calls the Contentlet API delete the container version
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.