Examples of MissingParameterException


Examples of net.sourceforge.jiu.ops.MissingParameterException

      if (getMode() == CodecMode.LOAD)
      {
        in = getInputAsDataInput();
        if (in == null)
        {
          throw new MissingParameterException("Input stream / file missing.");
        }
        load();
      }
      else
      {
View Full Code Here

Examples of net.sourceforge.jiu.ops.MissingParameterException

    IOException,
    MissingParameterException
  {
    if (tileIndex < 0)
    {
      throw new MissingParameterException("Tile index was not initialized.");
    }
    if (codec == null)
    {
      throw new MissingParameterException("No TIFFCodec object was given to this decoder.");
    }
    if (ifd == null)
    {
      throw new MissingParameterException("No TIFFImageFileDirectory object was given to this decoder.");
    }

    RandomAccessFile raf = codec.getRandomAccessFile();
    long offset = ifd.getTileOffset(tileIndex) & 0x00000000ffffffffL;
    raf.seek(offset);
View Full Code Here

Examples of net.sourceforge.jiu.ops.MissingParameterException

    MissingParameterException,
    WrongParameterException
  {
    if (image == null)
    {
      throw new MissingParameterException("Image parameter missing.");
    }
    createHistogramIfNecessary();
    if (hist.getMaxValue() < image.getMaxSample(channelIndex))
    {
      throw new WrongParameterException("Histogram does not have enough entries.");
View Full Code Here

Examples of net.sourceforge.jiu.ops.MissingParameterException

  public void process() throws
    MissingParameterException
  {
    if (matrix == null)
    {
      throw new MissingParameterException("No input co-occurrence matrix was provided.");
    }
    final int DIMENSION = matrix.getDimension();
    int items = 0;
    final int TOTAL_ITEMS = DIMENSION * 3;
    // initialize mu_i and mu_j
View Full Code Here

Examples of net.sourceforge.jiu.ops.MissingParameterException

    MissingParameterException,
    WrongParameterException
  {
    if (image == null)
    {
      throw new MissingParameterException("Image parameter missing.");
    }
    createHistogramIfNecessary();
    if (hist.getMaxValue(0) < image.getMaxSample(index1) ||
        hist.getMaxValue(1) < image.getMaxSample(index2) ||
        hist.getMaxValue(2) < image.getMaxSample(index3))
View Full Code Here

Examples of net.sourceforge.jiu.ops.MissingParameterException

  public void process() throws MissingParameterException, WrongParameterException
  {
    if (image1 == null)
    {
      throw new MissingParameterException("You must specify images using setImages.");
    }
    boolean sameType = image1.getImageType() == image2.getImageType();
    if (image1 instanceof RGB24Image && image2 instanceof Paletted8Image)
    {
      process((RGB24Image)image1, (Paletted8Image)image2);
View Full Code Here

Examples of org.apache.imperius.spl.parser.exceptions.MissingParameterException

      }
    }
    else
    {
      logger.severe(Thread.currentThread().getName()+" "+"Missing parameters");
      throw new MissingParameterException(Messages
          .getString("SPL_MISSING_PARAMETERS_EXCEPTION_MSG"));
    }
    logger.exiting(sourceClass,Thread.currentThread().getName()+" "+ "validate");
    return result;
View Full Code Here

Examples of org.onesocialweb.openfire.exception.MissingParameterException

    // TODO

    // Process the parameters
    String fileId = request.getParameter("fileId");
    if (fileId == null || fileId.isEmpty()) {
      throw new MissingParameterException("fileId");
    }

    // Get the file entry
    FileEntry fileEntry = UploadManager.getInstance().getFile(fileId);
    if (fileEntry == null) {
View Full Code Here

Examples of org.pentaho.platform.plugin.action.mondrian.MissingParameterException

  }

  public void testMissingParameterException1() {
    startTest();
    info( "Expected: Exception will be caught and thrown as a Missing Parameter Exception" ); //$NON-NLS-1$
    MissingParameterException mpe1 =
        new MissingParameterException( "A test Missing Parameter Exception has been thrown" ); //$NON-NLS-1$
    System.out.println( "Missing Parameter Exception :" + mpe1 ); //$NON-NLS-1$   
    assertTrue( true );
    finishTest();
  }
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.