Examples of ValidationException


Examples of com.robustaweb.library.commons.exception.ValidationException

        if (email == null){
            throw new IllegalArgumentException("email is null");
        }

        if (!validateEmail(email)) {
            throw new ValidationException("Email is not valid");
        }

        int index = email.indexOf('@');
        return email.substring(0, index);
View Full Code Here

Examples of com.sun.speech.freetts.ValidationException

        String mbrolaBase = Utilities.getProperty("mbrola.base", null);
        File mbrolaBinary = new File(mbrolaVoice.getMbrolaBinary());
        File mbrolaVoiceDB = new File(mbrolaVoice.getDatabase());

        if (mbrolaBase == null || mbrolaBase.length() == 0) {
            throw new ValidationException
                ("System property \"mbrola.base\" is undefined. " +
                 "You might need to set the MBROLA_DIR environment variable.");
        }
        if (!mbrolaBinary.exists()) {
            throw new ValidationException
                ("No MBROLA binary at: " + mbrolaVoice.getMbrolaBinary());
        }
        if (!mbrolaVoiceDB.exists()) {
            throw new ValidationException
                ("No voice database for " + mbrolaVoice.getName() +
                 " at: " + mbrolaVoice.getDatabase());
        }
    }
View Full Code Here

Examples of com.sun.tools.internal.ws.wsdl.framework.ValidationException

        _encodingStyle = s;
    }

    public void validateThis() {
        if(_use == SOAPUse.ENCODED) {
            throw new ValidationException("validation.unsupportedUse.encoded", getLocator().getLineNumber(),getLocator().getSystemId());
        }
    }
View Full Code Here

Examples of com.sun.tools.ws.wsdl.framework.ValidationException

        _parts = s;
    }

    public void validateThis() {
        if(_use == SOAPUse.ENCODED) {
            throw new ValidationException("validation.unsupportedUse.encoded", getLocator().getLineNumber(),getLocator().getSystemId());
        }
    }
View Full Code Here

Examples of com.tll.client.validate.ValidationException

      }
    }
    final ArrayList<Error> errors = new ArrayList<Error>();
    validate(errors, this, new ArrayList<FieldGroup>());
    if(errors.size() > 0) {
      throw new ValidationException(errors);
    }
  }
View Full Code Here

Examples of com.totsp.gwittir.client.validator.ValidationException

        if((i.intValue() <= max) && (i.intValue() >= min)) {
            return value;
        }

        throw new ValidationException("Must be a value between " + min +
            " and " + max, DoubleRangeValidator.class);
    }
View Full Code Here

Examples of com.volantis.mcs.xml.schema.validation.ValidationException

                    // The character data is required (not whitespace) but as
                    // the previous whitespace was not consumed because
                    // character data is not allowed this should fail.
                    validatorMock.expects.content(Content.PCDATA, true)
                            .fails(new ValidationException(
                                    "PCDATA not allowed"));
                }
                validatorMock.expects.close();
            }
        });
View Full Code Here

Examples of com.webobjects.foundation.NSValidation.ValidationException

          String formattedValue = format.format(parsedValue);
          objValue = format.parseObject(formattedValue);
        }
        catch (ParseException parseexception) {
          String valueKeyPath = _valueAssociation.keyPath();
          ValidationException validationexception = new ValidationException(parseexception.getMessage(), strValue, valueKeyPath);
          component.validationFailedWithException(validationexception, strValue, valueKeyPath);
          return null;
        }
        if (objValue != null && _useDecimalNumber != null && _useDecimalNumber.booleanValueInComponent(component)) {
          objValue = new BigDecimal(objValue.toString());
View Full Code Here

Examples of com.wesabe.grendel.representations.ValidationException

  public static class Throwing_A_Validation_Exception {
    private ValidationException e;
   
    @Before
    public void setup() throws Exception {
      this.e = new ValidationException();
      e.addReason("insufficient zazz");
      e.addReason("over-familiar tone");
      e.missingRequiredProperty("dingo");
    }
View Full Code Here

Examples of edu.uga.galileo.voci.exception.ValidationException

  public void setEmail(String email) throws ValidationException {
    this.email = email;

    if (email.length() > 0) {
      if ((email.indexOf('@') == -1) || (email.indexOf('.') == -1)) {
        throw new ValidationException(
            "Email address must contain @ and a period(.) ");
      }
    }
  }
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.