Package uk.org.ogsadai.activity

Examples of uk.org.ogsadai.activity.ActivityUserException


        try {
            writeToURL(location, reader);
        }
        catch (IOException e)
        {
            throw new ActivityUserException(e);
        }
    }
View Full Code Here


        {
            getFromURL(location + filename);
        }
        catch (IOException e)
        {
            throw new ActivityUserException(e);
        }
}
View Full Code Here

            output.close();
            LOG.debug("Finished reading file.");
        }
        catch (FileNotFoundException e)
        {
            throw new ActivityUserException(e);
        }
        catch (IOException e)
        {
            throw new ActivityUserException(e);
        }       
    }
View Full Code Here

                writer.write("\n");
            }
        }
        catch (IOException e)
        {
            throw new ActivityUserException(e);
        }
        finally
        {
            try
            {
View Full Code Here

               ActivityTerminatedException
    {
        Tuple values = (Tuple)valuesIter.nextValue();
        if (values == null)
        {
            throw new ActivityUserException(new NoValuesException());
        }
        if (valuesIter.nextValue() != null)
        {
            throw new ActivityUserException(new TooManyValuesException());
        }
        return values;
    }
View Full Code Here

      catch(NumberFormatException exc)
      {
        throw new InvalidInputValueException(INPUT_AGGREGATES, Double.class, exc);
      }
      if(tuples.nextValue() != null)
        throw new ActivityUserException(new AggregatesListIncorrectException());
      return aggregates;
  }
View Full Code Here

          {
              throw new ActivityTerminatedException();
          }
          catch (Exception e)
          {
              throw new ActivityUserException(e);
          }
   
  }
View Full Code Here

  private String getPmml() throws ActivityUserException, ActivityTerminatedException, ActivityProcessingException{
        Object block;
        block = readBlock(mPmmlInput); // BEGIN outer list of nominal values
        if (block != ControlBlock.LIST_BEGIN)
        {
            throw new ActivityUserException(
                    new MalformedListBeginException(INPUT_PMML));
        }

        while ((block = readBlock(mPmmlInput)) != ControlBlock.LIST_END)
        {
            if (block == ControlBlock.NO_MORE_DATA)
            {
                    throw new ActivityUserException(
                            new MalformedListEndException(INPUT_PMML));
             }
                else
                {
                  if(block instanceof char[]) {
View Full Code Here

        mOutput = getOutput();
        mAssociatorInput = getInput(INPUT_ASSOCIATOR);
      try {
          mOutput.write(ControlBlock.LIST_BEGIN);
        }catch(Throwable t) {
            throw new ActivityUserException(t);
        }
    }
View Full Code Here

      ActivityProcessingException, ActivityTerminatedException {

        try {
          mOutput.write(ControlBlock.LIST_END);
          }catch(Throwable t) {
            throw new ActivityUserException(t);
          }
   
  }
View Full Code Here

TOP

Related Classes of uk.org.ogsadai.activity.ActivityUserException

Copyright © 2018 www.massapicom. 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.