Examples of NullArgumentException


Examples of org.apache.commons.math3.exception.NullArgumentException

     */
    public StableRandomGenerator(final RandomGenerator generator,
                                 final double alpha, final double beta)
        throws NullArgumentException, OutOfRangeException {
        if (generator == null) {
            throw new NullArgumentException();
        }

        if (!(alpha > 0d && alpha <= 2d)) {
            throw new OutOfRangeException(LocalizedFormats.OUT_OF_RANGE_LEFT,
                    alpha, 0, 2);
View Full Code Here

Examples of org.apache.commons.math3.exception.NullArgumentException

     * @param format The new whole format value.
     * @throws NullArgumentException if {@code format} is {@code null}.
     */
    public void setWholeFormat(NumberFormat format) {
        if (format == null) {
            throw new NullArgumentException(LocalizedFormats.WHOLE_FORMAT);
        }
        this.wholeFormat = format;
    }
View Full Code Here

Examples of org.apache.geronimo.common.NullArgumentException

     * Construct a <code>Twiddle</code> command processor.
     */
    public Twiddle(final IOContext io, final ClassWorld world)
    {
        if (io == null) {
            throw new NullArgumentException("io");
        }
        if (world == null) {
            throw new NullArgumentException("world");
        }
       
        this.io = io;
        this.world = world;
        this.container = new CommandContainer();
View Full Code Here

Examples of org.apache.sis.util.NullArgumentException

     * @throws NullArgumentException if the key or the value is {@code null}.
     */
    @Override
    public V put(final K key, final V value) throws NullArgumentException {
        if (key == null || value == null) {
            throw new NullArgumentException(Errors.format(key == null
                    ? Errors.Keys.NullMapKey : Errors.Keys.NullMapValue));
        }
        return intern(key, value);
    }
View Full Code Here

Examples of org.ardverk.lang.NullArgumentException

     * Creates an {@link AsyncFutureTask} with the given
     * {@link Callable}.
     */
    public AsyncFutureTask(Callable<V> callable) {
        if (callable == null) {
            throw new NullArgumentException("callable");
        }
       
        this.callable = callable;
    }
View Full Code Here

Examples of org.glite.authz.pap.common.exceptions.NullArgumentException

     * @return <code>true</code> if one FQAN admin is found, <code>false</code> otherwise
     */
    private boolean contextHasFQANPermissions(PAPContext context){
       
        if ( context == null )
            throw new NullArgumentException(
                    "Please provide a value for the 'context' argument! null is not a valid value in this context." );
       
        ACL acl = context.getAcl();
       
        if (acl == null)
View Full Code Here

Examples of org.jboss.util.NullArgumentException

    * @jmx:managed-attribute
    */
   public void setCommandLine(final String commandLine)
   {
      if (commandLine == null)
         throw new NullArgumentException("commandLine");
     
      this.commandLine = commandLine;
   }
View Full Code Here

Examples of org.jboss.util.NullArgumentException

   }

   public void setInstancePool(final InstancePool instancePool)
   {
      if (instancePool == null)
         throw new NullArgumentException("instancePool");

      this.instancePool = instancePool;
   }
View Full Code Here

Examples of org.more.NullArgumentException

        return null;
    };
    /***/
    public static void copyProperties(final Object dest, final Object orig) {
        if (dest == null) {
            throw new NullArgumentException("dest");
        }
        if (orig == null) {
            throw new NullArgumentException("orig");
        }
        //
        List<String> propNames = new ArrayList<String>();
        if (orig instanceof Map) {
            for (Object key : ((Map) orig).keySet()) {
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.