Examples of InvalidParameterException


Examples of org.jamesii.core.cmdparameters.InvalidParameterException

   * @return
   */
  private static ParameterBlock fromObject(ParameterBlock block,
      Object... values) {
    if (values.length % 2 == 0) {
      throw new InvalidParameterException(
          "An odd number of parameters is required!");
    }
    block.setValue(values[0]);
    for (int i = 1; i < values.length; i += 2) {
      ParameterBlock subBlock =
View Full Code Here

Examples of org.locationtech.geogig.cli.InvalidParameterException

                // TODO: This could probably be more descriptive.
                throw new CommandFailedException("The config location is invalid", e);
            case CANNOT_WRITE:
                throw new CommandFailedException("Cannot write to the config", e);
            case SECTION_OR_NAME_NOT_PROVIDED:
                throw new InvalidParameterException("No section or name was provided", e);
            case SECTION_OR_KEY_INVALID:
                throw new InvalidParameterException("The section or key is invalid", e);
            case OPTION_DOES_NOT_EXIST:
                throw new InvalidParameterException("Tried to unset an option that does not exist",
                        e);
            case MULTIPLE_OPTIONS_MATCH:
                throw new InvalidParameterException(
                        "Tried to unset/set an option for which multiple lines match", e);
            case INVALID_REGEXP:
                throw new InvalidParameterException("Tried to use an invalid regexp", e);
            case USERHOME_NOT_SET:
                throw new InvalidParameterException(
                        "Used --global option without $HOME being properly set", e);
            case TOO_MANY_ACTIONS:
                throw new InvalidParameterException("Tried to use more than one action at a time",
                        e);
            case MISSING_SECTION:
                throw new InvalidParameterException(
                        "Could not find a section with the name provided", e);
            case TOO_MANY_ARGS:
                throw new InvalidParameterException("Too many arguments provided.", e);
            }
        } finally {
            if (closeIt) {
                geogig.close();
            }
View Full Code Here

Examples of org.pentaho.platform.api.engine.InvalidParameterException

    IPentahoStreamSource dataSource = null;

    // TODO Temp workaround for content repos bug
    IActionParameter actionParameter = paramManager.getCurrentInput( parameterName );
    if ( actionParameter == null ) {
      throw new InvalidParameterException( Messages.getInstance().getErrorString(
          "RuntimeContext.ERROR_0019_INVALID_INPUT_REQUEST", parameterName, actionSequence.getSequenceName() ) ); //$NON-NLS-1$
    }

    Object locObj = actionParameter.getValue();
    if ( locObj != null ) {
View Full Code Here

Examples of plugins.Freetalk.exceptions.InvalidParameterException

     */
    public Board(String newName, String description, boolean hasSubscriptions) throws InvalidParameterException {
        if(newName==null || newName.length() == 0)
            throw new IllegalArgumentException("Empty board name.");
        if(!isNameValid(newName))
            throw new InvalidParameterException("Invalid board name."); // TODO: Explain what is invalid

        mID = UUID.randomUUID().toString();
        mName = newName.toLowerCase();
        mDescription = description != null ? description : "";
        mHasSubscriptions = hasSubscriptions;
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.