Package org.xrace.util

Examples of org.xrace.util.UniqueException


  public void add(final CartItem item,
      final RabaisEvenementService rabaisEvenementService)
  {
    if (this.containsItem(item))
    {
      throw new UniqueException("Cet item est déjà dans le panier");
    }
    else
    {
      items.add(item);
View Full Code Here


        plaque, categorie);
    if (infoSaison != null)
    {
      if (!infoSaison.getPersonne().equals(personne))
      {
        throw new UniqueException(
            "Plaque déjà assignée à une autre personne "
                + "dans la catégorie. ");
      }
    }
View Full Code Here

    Validate.argNotNull(password, "password");
    Validate.argNotNull(langue, "langue");

    if (isUsernameUsed(nomUsager))
    {
      throw new UniqueException("Nom d'usager déjà utilisé. ");
    }

    if (personne.getId() != null && findByPersonne(personne) != null)
    {
      throw new UniqueException("La personne a déjà un compte. ");
    }

    personneService.save(personne);

    final Compte compte = new Compte();
View Full Code Here

    puce.setEnsemblePuces(this);

    if (!puces.add(puce))
    {
      puce.setEnsemblePuces(null);
      throw new UniqueException("La puce " + puce.getCode()
          + " existe déjà dans cet ensemble. ");
    }
  }
View Full Code Here

TOP

Related Classes of org.xrace.util.UniqueException

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.