Package com.gwtplatform.dispatch.shared

Examples of com.gwtplatform.dispatch.shared.ActionException


    UserInformation UIO = new UserInformation(servletContext);
   
    try {
      return UIO.verifyUser(action);
    } catch (VerificationException e) {
      throw new ActionException(e.getMessage());
    }
  }
View Full Code Here


    UserInformation UIO = new UserInformation(servletContext);
   
    try {
      UIO.loginUser(loginAction);
    } catch (LoginException e) {
      throw new ActionException(e.getMessage());
    }
       
    // return LoginResult object with userdata
    SIO = UIO.updateSIO(SIO);
   
View Full Code Here

        } else {
            targetNodeHit = uriIndex.get(DBNodeProperties.URI, targetUri);
        }

        if (!targetNodeHit.hasNext()) {
            throw new ActionException(
                    "Target node does not exists: " + targetUri +
                    " targetIsComment: " + targetIsComment);
        }
        return targetNodeHit.getSingle();
    }
View Full Code Here

            uriIndex.add(newNode, DBNodeProperties.COMMENT_URI, comment.getUri());

            tx.success();
        } catch (Exception e) {
            throw new ActionException("Error occurred when saving comment", e);
        } finally {
            tx.finish();
        }
    }
View Full Code Here

            node.setProperty(DBNodeProperties.COMMENT_VOTES, newVote);
            node.createRelationshipTo(userNode,
                    upVote ? DBRelationshipTypes.COMMENT_UP_VOTE : DBRelationshipTypes.COMMENT_DOWN_VOTE);
            tx.success();
        } catch (Exception e) {
            throw new ActionException("Error occurred when voting comment", e);
        } finally {
            tx.finish();
        }
        return newVote;
    }
View Full Code Here

    try {
      UserInformation UIO = new UserInformation(servletContext);
      UIO.registerNewUser(newUserAction);
    } catch (NewUserError e) {
      // something went wrong
      throw new ActionException(e.getMessage());
    }
   
    // everything ok
    return new NewUserActionResult();
  }
View Full Code Here

TOP

Related Classes of com.gwtplatform.dispatch.shared.ActionException

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.