Package uk.org.ogsadai.activity

Examples of uk.org.ogsadai.activity.ActivityUserException


            {
                mIsInvalid = method;
            }
            else
            {
                throw new ActivityUserException(
                        new UnsupportedCause(column, cause));
            }
        }
View Full Code Here


          options = DEFAULT_OPTIONS;
         
        }
        catch (Exception e)
        {
            throw new ActivityUserException(e);
        }
        try
        {
          Tuple tuple;
       
View Full Code Here

{
    Object block;
    block = readBlock(mNominalValuesInput); // BEGIN outer list of nominal values
    if (block != ControlBlock.LIST_BEGIN)
    {
        throw new ActivityUserException(
                new MalformedListBeginException(INPUT_NOMINAL_VALUES));
    }
    block = readBlock(mColumnInput); // BEGIN outer list of column indices
    if (block != ControlBlock.LIST_BEGIN)
    {
        throw new ActivityUserException(
                new MalformedListBeginException(INPUT_COLUMN_INDICES));
    }
    Map<Integer, List<Object>> result = new HashMap<Integer, List<Object>>();
    while ((block = readBlock(mNominalValuesInput)) != ControlBlock.LIST_END)
    {
        if (block != ControlBlock.LIST_BEGIN)
        {
            throw new ActivityUserException(
                    new MalformedListBeginException(INPUT_NOMINAL_VALUES));
        }
        int index = getNextColumnIndex();
        List<Object> values = new ArrayList<Object>();
        while ((block = readBlock(mNominalValuesInput)) != ControlBlock.LIST_END)
        {
            if (block == ControlBlock.NO_MORE_DATA)
            {
                throw new ActivityUserException(
                        new MalformedListEndException(INPUT_NOMINAL_VALUES));
            }
            else
            {
                values.add(block);
            }
        }
        result.put(index, values);
    }
    block = readBlock(mColumnInput); // END outer list of column indices
    if (block != ControlBlock.LIST_END)
    {
        throw new ActivityUserException(
                new MalformedListEndException(INPUT_COLUMN_INDICES));
    }
    return result;
}
View Full Code Here

            {
                String columnName = template.substring(start + REPLACE_BEGIN.length(), end);
                int columnIndex = metadata.getColumnMetadataPosition(columnName);
                if (columnIndex == -1)
                {
                    throw new ActivityUserException(
                            new ColumnNotFoundException(columnName));
                }
                mColumns.add(columnIndex);
                mFixed.add(template.substring(prevStart, start));
                start = template.indexOf(REPLACE_BEGIN, end);
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.