Package uk.org.ogsadai.activity

Examples of uk.org.ogsadai.activity.ActivityUserException


        {
            throw new ActivityProcessingException(e);
        }
        catch (BlockTypeNotSupported e)
        {
            throw new ActivityUserException(e);
        }
    }
View Full Code Here


            throw new ActivityPipeProcessingException(e);
        }
        catch (ResourceIDAlreadyAssignedException e)
        {
            // Wrap the resource ID already assigned error as a user exception
            throw new ActivityUserException(e);
        }
        catch (Exception e)
        {
            throw new ActivityProcessingException(e);
        }
View Full Code Here

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

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

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

  private AssociationRulesProducer getAssociator() throws ActivityUserException, ActivityTerminatedException, ActivityProcessingException{
        Object block;
        block = readBlock(mAssociatorInput); // BEGIN outer list of nominal values
        if (block != ControlBlock.LIST_BEGIN)
        {
            throw new ActivityUserException(
                    new MalformedListBeginException(INPUT_ASSOCIATOR));
        }

        while ((block = readBlock(mAssociatorInput)) != ControlBlock.LIST_END)
        {
            if (block == ControlBlock.NO_MORE_DATA)
            {
                    throw new ActivityUserException(
                            new MalformedListEndException(INPUT_ASSOCIATOR));
             }
                else
                {
                  if(block instanceof AssociationRulesProducer) {
View Full Code Here

            throws ActivityUserException
    {
        if (linearIndex >= metadata.getColumnCount()
                || linearIndex < 0)
        {
            throw new ActivityUserException(
                    new ColumnNotFoundException(linearIndex));
        }
        ColumnMetadata col = metadata.getColumnMetadata(linearIndex);
        if (col.getType() != TupleTypes._DOUBLE
                && col.getType() != TupleTypes._FLOAT
                && col.getType() != TupleTypes._LONG
                && col.getType() != TupleTypes._INT
                && col.getType() != TupleTypes._SHORT)
        {
            throw new ActivityUserException(
                    new Exception("Cannot filter non-numeric columns."));
        }
    }
View Full Code Here

        {
            throw new ActivityTerminatedException();
        }
        catch (ColumnNotFoundException e)
        {
            throw new ActivityUserException(new ExpressionException(e));
        }
        catch (UnsupportedOperandTypeException e)
        {
            throw new ActivityUserException(new ExpressionException(e));
        }
        catch (ExpressionException e)
        {
            throw new ActivityUserException(e);
        }
        catch (SQLParserException e)
        {
            throw new ActivityUserException(e);
        }

    }
View Full Code Here

        {
            throw new ActivityTerminatedException();
        }
        catch (ColumnNotFoundException e)
        {
            throw new ActivityUserException(new ExpressionException(e));
        }
        catch (UnsupportedOperandTypeException e)
        {
            throw new ActivityUserException(new ExpressionException(e));
        }
        catch (ExpressionException e)
        {
            throw new ActivityUserException(e);
        }
        catch (SQLParserException e)
        {
            throw new ActivityUserException(e);
        }

    }
View Full Code Here

            String cause = (String) causeList.nextValue();
            Object[] parameters = (Object[]) parameterList.nextValue();

            if (method == null || cause == null || parameters == null)
            {
                throw new ActivityUserException(
                        new UnmatchedInputException(
                                new String[] {
                                        INPUT_COLUMNS,
                                        INPUT_METHODS,
                                        INPUT_CAUSE,
                                        INPUT_PARAMETERS },
                                new Object[] {
                                        column, method, cause, parameters }));
            }

            DPPMethodForColumn methodForColumn = loadMethod(
                    column.intValue(),
                    method,
                    cause,
                    parameters,
                    pmml.getPMML());
            mColumnMethods.put(column, methodForColumn);
        }

        if (methodsList.nextValue() != null
                || causeList.nextValue() != null
                || parameterList.nextValue() != null)
        {
            throw new ActivityUserException(
                    new UnmatchedInputException(
                            new String[] {
                                    INPUT_COLUMNS,
                                    INPUT_METHODS,
                                    INPUT_CAUSE,
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.