Package com.apress.progwt.client.exception

Examples of com.apress.progwt.client.exception.BusinessException


        if (loggedIn == null) {
            log.warn(command + " attempted by anonymous ");
        }

        if (!command.haveYouSecuredYourselfAndFilteredUserInput()) {
            throw new BusinessException("Command " + command
                    + " hasn't secured.");
        }
        if (!userService.getToken(loggedIn).equals(command.getToken())) {
            log.warn("Possible XSRF: |" + command.getToken()
                    + "| expected |" + userService.getToken(loggedIn)
View Full Code Here


    public void createAndSendInvitation(final String email,
            final User inviter) throws BusinessException,
            InfrastructureException {

        if (inviter.getInvitations() < 1) {
            throw new BusinessException("No invites available for user.");
        }

        log.debug("before create entry");

        final MailingListEntry invitation = mailingListDAO.createEntry(
View Full Code Here

      return retVal;

    } catch (BusinessException e) {
      log.error("FAILURE: " + e + " " + e.getMessage());
      throw new BusinessException(e);
    } catch (Exception e) {
      log.error("FAILURE: " + e + " " + e.getMessage());
      if (log.isDebugEnabled()) {
        e.printStackTrace();
      }
      throw new BusinessException(e);
    }

  }
View Full Code Here

            log.debug("Returning "+rtn);
            return rtn;

        } catch (UsernameNotFoundException u) {
            log.warn("No User Found " + u);
            throw new BusinessException(u);
        }
    }
View Full Code Here

TOP

Related Classes of com.apress.progwt.client.exception.BusinessException

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.