Examples of IllegalValueException


Examples of fr.xlim.ssd.capmanipulator.library.exceptions.IllegalValueException

        for (int i = 0; i < codes.length; i++) {
            Byte key;
            try {
                key = (Byte) this.mBytecode.getKey(new OpCode((byte) 0, codes[i], null));
            } catch (Exception e) {
                throw new IllegalValueException(codes[i] + " isn't a OpCode");
            }
            OpCode c = (OpCode) this.mBytecode.get(key);
            bytecode.add(c.getValue());
            for (int j = 0; j < c.getArguments().size(); j++) {
                i++;
View Full Code Here

Examples of fr.xlim.ssd.capmanipulator.library.exceptions.IllegalValueException

        Pattern p = Pattern.compile("[\\w-]+");
        Matcher m = p.matcher(s);
        if (m.find()) {
            return m.group();
        } else {
            throw new IllegalValueException(s + " is not un correct value !");
        }
    }
View Full Code Here

Examples of org.cspoker.common.elements.chips.IllegalValueException

   * @throws IllegalValueException
   */
  protected void collectSmallBlind(MutableSeatedPlayer player)
      throws IllegalValueException {
    if (player.getStack().getValue() <= getGame().getTableConfiguration().getSmallBlind()) {
      throw new IllegalValueException();
    }
    player.transferAmountToBetPile(getGame().getTableConfiguration().getSmallBlind());
    setBet(getGame().getTableConfiguration().getSmallBlind());
    getBettingRules().setBetPlaced(true);
    getBettingRules().setLastBetAmount(getGame().getTableConfiguration().getSmallBlind());
View Full Code Here

Examples of org.cspoker.common.elements.chips.IllegalValueException

   * @throws IllegalValueException
   */
  protected void collectBigBlind(MutableSeatedPlayer player)
      throws IllegalValueException {
    if (player.getStack().getValue() <= getGame().getTableConfiguration().getBigBlind()) {
      throw new IllegalValueException();
    }
    player.transferAmountToBetPile(getGame().getTableConfiguration().getBigBlind());
    getBettingRules().setBetPlaced(true);
    getBettingRules().setLastBetAmount(getGame().getTableConfiguration().getBigBlind());
    setBet(getGame().getTableConfiguration().getBigBlind());
View Full Code Here

Examples of org.eclipse.emf.ecore.xmi.IllegalValueException

            }

            if (!oppositeEReference.getEType().isInstance(resolvedEObject))
            {
              error
                (new IllegalValueException
                   (proxyHolder,
                    oppositeEReference,
                    resolvedEObject,
                    null,
                    getLocation(),
View Full Code Here

Examples of org.eclipse.emf.ecore.xmi.IllegalValueException

      helper.setValue(object, feature, value, position);
    }
    catch (RuntimeException e)
    {
      error
        (new IllegalValueException
           (object,
            feature,
            value,
            e,
            getLocation(),
View Full Code Here

Examples of org.eclipse.emf.ecore.xmi.IllegalValueException

              list.addUnique(position, value);
            }
          }
          catch (RuntimeException e)
          {
            xmiExceptions.add(new IllegalValueException
                                    (object,
                                     feature,
                                     value,
                                     e,
                                     location,
                                     reference.getLineNumber(),
                                     reference.getColumnNumber()
                                    ));
          }
        }
      }
    }
    else
    {
      for (int i = 0, l = values.length; i < l; i++)
      {
        Object value = values[i];
        if (value != null)
        {
          try
          {
            int sourcePosition = list.basicIndexOf(value);
            if (sourcePosition != -1)
            {
              list.move(positions[i], sourcePosition);
            }
            else
            {
              list.addUnique(positions[i], value);
            }
          }
          catch (RuntimeException e)
          {
            xmiExceptions.add(new IllegalValueException
                                    (object,
                                     feature,
                                     value,
                                     e,
                                     location,
View Full Code Here

Examples of org.jitterbit.util.exception.IllegalValueException

        }

        @Override
        public void validate(String value) throws IllegalValueException {
            if (!isValid(value)) {
                throw new IllegalValueException(value, "Allowed values are: " + allowedValues);
            }
        }
View Full Code Here

Examples of rtpi.IllegalValueException

  super(pid);
  payloadType=APP;
  name=n;
  data=d;
  if (name.length!=4) {
      throw new IllegalValueException("RtcpiApplicationPacket: illegal name length: "+name.length+" should be 4");
  }
  if (data.length%4!=0) {
      throw new IllegalValueException("RtcpiApplicationPacket: illegal data length: "+data.length+" should be divisble by 4");
  }

  length=1+data.length/4;
    }
View Full Code Here

Examples of rtpi.IllegalValueException

    }

    private void setSourceDescriptionItems(LinkedList its) throws IllegalValueException {
  items=its;
  if (items==null || items.size()==0 || items.size()>31) {
      throw new IllegalValueException("RtcpiSourceDescriptionPacket: Can't set empty entries list");
  }

  count = items.size();

  SourceDescriptionItem item = (SourceDescriptionItem) items.getFirst();
  if (item.getType()!=SourceDescriptionItem.CNAME) {
      throw new IllegalValueException("RtcpiSourceDescriptionPacket: First element in entries list is not a CNAME entry");
  }

  length = 0; // first calculate them on a byte basis, then devide it by 4!
   
  for(ListIterator iter=items.listIterator();iter.hasNext();) {
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.