Examples of ActionException


Examples of net.sourceforge.jwbf.core.actions.util.ActionException

      loginChangeUserInfo = true;
      if (getVersion() == Version.UNKNOWN) {
        loginChangeVersion = true;
      }
    } catch (ProcessException e) {
      throw new ActionException(e.getLocalizedMessage());
    } catch (RuntimeException e) {
      throw new ActionException(e);
    }

  }
View Full Code Here

Examples of org.apache.isis.viewer.html.action.ActionException

                }
                InvokeMethod.displayMethodResult(request, context, page, result, targetId);
                context.endTask(task);
            }
        } else {
            throw new ActionException("No task action: " + button);
        }
    }
View Full Code Here

Examples of org.apache.isis.viewer.html.action.ActionException

    @Override
    public void execute(final Request request, final Context context, final Page page) {
        final String idString = request.getObjectId();
        if (idString == null) {
            throw new ActionException("Task no longer in progress");
        }
        final ObjectAdapter target = context.getMappedObject(idString);
        final String id = request.getActionId();
        final ObjectAction action = context.getMappedAction(id);
        if (action == null) {
            throw new ActionException("No such action: " + id);
        }

        boolean executeImmediately = false;
        // TODO use new promptForParameters method instead of all this
        final boolean isContributedMethod = action.isContributed();
View Full Code Here

Examples of org.apache.isis.viewer.html.action.ActionException

    public void execute(final Request request, final Context context, final Page page) {
        final String collectionField = request.getProperty();

        final String idString = request.getObjectId();
        if (idString == null) {
            throw new ActionException("Task no longer in progress");
        }
        final ObjectAdapter object = context.getMappedObject(idString);
        final ObjectSpecification specification = object.getSpecification();
        final OneToManyAssociation field = (OneToManyAssociation) specification.getAssociation(collectionField);
        final AddItemToCollectionTask addTask = new AddItemToCollectionTask(context, object, field);
View Full Code Here

Examples of org.apache.isis.viewer.html.action.ActionException

    @Override
    public void execute(final Request request, final Context context, final Page page) {
        final String idString = request.getObjectId();
        if (idString == null) {
            throw new ActionException("Task no longer in progress");
        }
        final ObjectAdapter object = context.getMappedObject(idString);
        if (!(object.isTransient())) {
            context.setObjectCrumb(object);
        }
View Full Code Here

Examples of org.apache.isis.viewer.html.action.ActionException

    @Override
    public final void execute(final Request request, final Context context, final Page page) {
        final String idString = request.getObjectId();
        final ObjectAdapter collection = context.getMappedCollection(idString);
        if (collection == null) {
            throw new ActionException("No such collection: " + idString);
        }
        final String titleString = collection.titleString();

        page.setTitle(titleString);
View Full Code Here

Examples of org.apache.isis.viewer.html.action.ActionException

    @Override
    public final void execute(final Request request, final Context context, final Page page) {
        final String idString = request.getObjectId();
        final ObjectAdapter adapter = context.getMappedObject(idString);
        if (adapter == null) {
            throw new ActionException("No such object: " + idString);
        }

        getPersistenceSession().resolveImmediately(adapter);

        page.setTitle(adapter.titleString());
View Full Code Here

Examples of org.apache.log4j.joran.spi.ActionException

      inError = true;
      getLogger().error(
        "Could not create an Appender. Reported error follows.", oops);
      ec.addError(
        new ErrorItem("Could not create appender of type " + className + "]."));
      throw new ActionException(ActionException.SKIP_CHILDREN, oops);
    }
  }
View Full Code Here

Examples of org.b3log.latke.action.ActionException

        } catch (final Exception e) {
            if (transaction.isActive()) {
                transaction.rollback();
            }
            LOGGER.log(Level.SEVERE, e.getMessage(), e);
            throw new ActionException(e);
        }

        return ret;
    }
View Full Code Here

Examples of org.b3log.latke.action.ActionException

            ret.put(Common.PAGE_CACHED_CNT, PageCaches.getKeys().size());
        } catch (final JSONException e) {
            LOGGER.log(Level.SEVERE, "Gets page cache status error: {0}",
                       e.getMessage());
            throw new ActionException(e);
        }

        return ret;
    }
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.