Examples of FunctionException


Examples of com.wesleyhome.math.equation.FunctionException

  private static final String MESSAGE = "Message";
  private FunctionException exception;

  @Before
  public void setUp() throws Exception {
    exception = new FunctionException(MESSAGE);
  }
View Full Code Here

Examples of fork.lib.math.algebra.elementary.function.FunctionException

     * Construct a polynomial function of degree n from given constants.
     * @param ds   coefficients in the order of highest degree to lowest
     */
    public DegreeNFunction(double...ds) throws FunctionException{
        if(ds==null || ds.length==0){
            throw new FunctionException();
        }else{
            this.coeffs=ds;
        }
    }
View Full Code Here

Examples of org.eclipse.sapphire.modeling.el.FunctionException

                    };
                }
            }
        }
       
        throw new FunctionException( "CatalogItemImage() function cannot be used in this context.");
    }
View Full Code Here

Examples of org.webharvest.exception.FunctionException

        FunctionDef functionDef = scraper.getConfiguration().getFunctionDef(functionName);

        this.setProperty("Name", functionName);

        if (functionDef == null) {
            throw new FunctionException("Function \"" + functionName + "\" is undefined!");
        }

        scraper.clearFunctionParams();

        // executes body of call processor
View Full Code Here

Examples of railo.runtime.exp.FunctionException

      setDimensions(dim[0],dim[1]);
    }

    // check for arguments not supported
    if(parameters.size()>0) {
      throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", "the parameter"+(parameters.size()>1?"s":"")+" ["+CollectionUtil.getKeyList(parameters,", ")+"] "+(parameters.size()>1?"are":"is")+" not allowed, only the following parameters are supported [Colormap, Turbulence, Stretch, Angle, TurbulenceFactor, Scale, Dimensions]");
    }

    return filter(src, dst);
  }
View Full Code Here

Examples of railo.runtime.exp.FunctionException

    if((o=parameters.removeEL(KeyImpl.init("CleanImage")))!=null)setCleanImage(ImageFilterUtil.toBufferedImage(o,"CleanImage"));
    if((o=parameters.removeEL(KeyImpl.init("destination")))!=null)setDestination(ImageFilterUtil.toBufferedImage(o,"destination"));

    // check for arguments not supported
    if(parameters.size()>0) {
      throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", "the parameter"+(parameters.size()>1?"s":"")+" ["+CollectionUtil.getKeyList(parameters,", ")+"] "+(parameters.size()>1?"are":"is")+" not allowed, only the following parameters are supported [HTolerance, STolerance, BTolerance, CleanImage]");
    }

    return filter(src, dst);
  }
View Full Code Here

Examples of railo.runtime.exp.FunctionException

  public BufferedImage filter(BufferedImage src, Struct parameters) throws PageException {BufferedImage dst=ImageUtil.createBufferedImage(src);
    //Object o;

    // check for arguments not supported
    if(parameters.size()>0) {
      throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", "the parameter"+(parameters.size()>1?"s":"")+" ["+CollectionUtil.getKeyList(parameters,", ")+"] "+(parameters.size()>1?"are":"is")+" not allowed, only the following parameters are supported []");
    }

    return filter(src, dst);
  }
View Full Code Here

Examples of railo.runtime.exp.FunctionException

      setDimensions(dim[0],dim[1]);
    }

    // check for arguments not supported
    if(parameters.size()>0) {
      throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", "the parameter"+(parameters.size()>1?"s":"")+" ["+CollectionUtil.getKeyList(parameters,", ")+"] "+(parameters.size()>1?"are":"is")+" not allowed, only the following parameters are supported [White, Black, LowerThreshold, UpperThreshold, Dimensions]");
    }

    return filter(src, dst);
  }
View Full Code Here

Examples of railo.runtime.exp.FunctionException

      setDimensions(dim[0],dim[1]);
    }

    // check for arguments not supported
    if(parameters.size()>0) {
      throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", "the parameter"+(parameters.size()>1?"s":"")+" ["+CollectionUtil.getKeyList(parameters,", ")+"] "+(parameters.size()>1?"are":"is")+" not allowed, only the following parameters are supported [Exposure, Dimensions]");
    }

    return filter(src, dst);
  }
View Full Code Here

Examples of railo.runtime.exp.FunctionException

    if((o=parameters.removeEL(KeyImpl.init("EdgeAction")))!=null)setEdgeAction(ImageFilterUtil.toString(o,"EdgeAction"));
    if((o=parameters.removeEL(KeyImpl.init("Interpolation")))!=null)setInterpolation(ImageFilterUtil.toString(o,"Interpolation"));

    // check for arguments not supported
    if(parameters.size()>0) {
      throw new FunctionException(ThreadLocalPageContext.get(), "ImageFilter", 3, "parameters", "the parameter"+(parameters.size()>1?"s":"")+" ["+CollectionUtil.getKeyList(parameters,", ")+"] "+(parameters.size()>1?"are":"is")+" not allowed, only the following parameters are supported [Scale, EdgeAction, Interpolation]");
    }

    return filter(src, dst);
  }
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.