Examples of BusinessException


Examples of auction.exceptions.BusinessException

        if (getBillingDetails().size() >= 2) {
            getBillingDetails().remove(billingDetails);
            setDefaultBillingDetails((BillingDetails)getBillingDetails().iterator().next());
        } else {
            throw new BusinessException("Please set new default BillingDetails first");
        }
    }
View Full Code Here

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

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

    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

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

      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

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

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

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

Examples of com.bansheeproject.test.services.entities.BusinessException

  public ComplexType complexOperation (ComplexType param) {
    return param;
  }
 
  public String throwBusinessException() throws BusinessException {
    throw new BusinessException("should throw an exception");
  }
View Full Code Here

Examples of com.bansheeproject.test.services.entities.BusinessException

    try {
      Thread.sleep(1000 * 2); //Hang for 2 seconds
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
    throw new BusinessException("hang exception.");
  }
View Full Code Here

Examples of com.bansheeproject.test.services.entities.BusinessException

 
  public void throwRandomException () throws BusinessException, AnotherBusinessException {
    Random r = new Random();
    int randomValue = r.nextInt(2);
    if (randomValue == 0) {
      throw new BusinessException("Business exception 1 is being thrown.");
    }
    else {
      throw new AnotherBusinessException("Business exception 2 is being thrown.");
    }
  }
View Full Code Here

Examples of com.bansheeproject.test.services.entities.BusinessException

  }
 
 
 
  public String throwBusinessException() throws BusinessException {
    throw new BusinessException("should throw an exception");
  }
View Full Code Here

Examples of com.bansheeproject.test.services.entities.BusinessException

    try {
      Thread.sleep(1000 * 2); //Hang for 2 seconds
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
    throw new BusinessException("hang exception.");
  }
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.