Examples of InvalidArgumentException


Examples of com.amazonaws.services.cloudfront.model.InvalidArgumentException

            obj = ((WrappedFile<?>)obj).getFile();
        }
        if (obj instanceof File) {
            filePayload = (File) obj;
        } else {
            throw new InvalidArgumentException("aws-s3: MultiPart upload requires a File input.");
        }

        ObjectMetadata objectMetadata = determineMetadata(exchange);
        if (objectMetadata.getContentLength() == 0) {
            objectMetadata.setContentLength(filePayload.length());
View Full Code Here

Examples of com.amazonaws.services.cloudfront_2012_03_15.model.InvalidArgumentException

        // marshaller understands.
        String errorCode = parseErrorCode(node);
        if (errorCode == null || !errorCode.equals("InvalidArgument"))
            return null;

        InvalidArgumentException e = (InvalidArgumentException)super.unmarshall(node);
       
        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.kinesis.model.InvalidArgumentException

        // marshaller understands.
        String errorCode = parseErrorCode(json);
        if (errorCode == null || !errorCode.equals("InvalidArgumentException"))
            return null;

        InvalidArgumentException e = (InvalidArgumentException)super.unmarshall(json);

        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.route53.model.InvalidArgumentException

        // marshaller understands.
        String errorCode = parseErrorCode(node);
        if (errorCode == null || !errorCode.equals("InvalidArgument"))
            return null;

        InvalidArgumentException e = (InvalidArgumentException)super.unmarshall(node);
       
        return e;
    }
View Full Code Here

Examples of javax.sip.InvalidArgumentException

        // then send INVITE+ACK later on
        if (!method.equals(Request.INVITE))
            throw new SipException("Dialog was not created with an INVITE" + method);

        if (cseqno <= 0)
            throw new InvalidArgumentException("bad cseq <= 0 ");
        else if (cseqno > ((((long) 1) << 32) - 1))
            throw new InvalidArgumentException("bad cseq > " + ((((long) 1) << 32) - 1));

        if (this.remoteTarget == null) {
            throw new SipException("Cannot create ACK - no remote Target!");
        }
View Full Code Here

Examples of javax.slee.InvalidArgumentException

     */
    public UsageOutOfRangeFilter(NotificationSource notificationSource, String paramName, long lowValue, long highValue) throws NullPointerException, InvalidArgumentException {
        if (notificationSource == null) throw new NullPointerException("notificationSource is null");
        if (paramName == null) throw new NullPointerException("paramName is null");

        if (highValue < lowValue) throw new InvalidArgumentException("highValue < lowValue");

        this.notificationSource = notificationSource;
        this.paramName = paramName;
        this.lowValue = lowValue;
        this.highValue = highValue;
View Full Code Here

Examples of javax.util.jcache.InvalidArgumentException

     * @throws InvalidArgumentException if a negative value for idle is
     *             supplied.
     */
    public void setIdleTime(final long idle) throws InvalidArgumentException {
        if (idle < 0) {
            throw new InvalidArgumentException("Idle time must be a positive number.");
        }
        this.idleTime = idle;
    }
View Full Code Here

Examples of javax.util.jcache.InvalidArgumentException

     *
     * @throws InvalidArgumentException if a negative value for ttl is supplied.
     */
    public void setTimeToLive(final long ttl) throws InvalidArgumentException {
        if (ttl < 0) {
            throw new InvalidArgumentException("Time to live must be a positive number.");
        }
        this.timeToLive = ttl;
    }
View Full Code Here

Examples of javax.util.jcache.InvalidArgumentException

     * @throws InvalidArgumentException if any of the parameters are negative
     *             values.
     */
    public long timeToSeconds(final int days, final int hours, final int minutes, final int seconds) throws InvalidArgumentException {
        if (days < 0) {
            throw new InvalidArgumentException("Days must be larger than zero.");
        }
        if (hours < 0) {
            throw new InvalidArgumentException("Hours must be larger than zero.");
        }
        if (minutes < 0) {
            throw new InvalidArgumentException("Minutes must be larger than zero.");
        }
        if (seconds < 0) {
            throw new InvalidArgumentException("Seconds must be larger than zero.");
        }
        return seconds + (ONE_MINUTE * minutes) + (ONE_MINUTE * ONE_HOUR * hours) + (ONE_MINUTE * ONE_HOUR * ONE_DAY * days);
    }
View Full Code Here

Examples of mondrian.olap.InvalidArgumentException

                    return DateFormat.getDateTimeInstance().parse(str);
                } catch (ParseException ex1) {
                    try {
                        return DateFormat.getDateInstance().parse(str);
                    } catch (ParseException ex2) {
                        throw new InvalidArgumentException(
                            "Invalid parameter. "
                            + "expression parameter of CDate function must be "
                            + "formatted correctly ("
                            + String.valueOf(expression) + ")");
                    }
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.