Package com.cedarsoftware.ncube.exception

Examples of com.cedarsoftware.ncube.exception.CoordinateNotFoundException


            else if (axis.isMultiMatch())
            {   // For a multiMatch axis, only the columns that match the input coordinate are returned
                List<Column> cols = axis.findColumns(value);
                if (cols == null || cols.size() < 1)
                {
                    throw new CoordinateNotFoundException("Value '" + value + "' not found on multi-match axis '" + axis.getName() + "', NCube '" + name + "'");
                }
                coordinates.put(axisNameLowcase, cols);
            }
            else
            {   // Find the single column that binds to the input coordinate on a regular axis.
                final Column column = axis.findColumn(value);
                if (column == null)
                {
                    throw new CoordinateNotFoundException("Value '" + value + "' not found on axis '" + axis.getName() + "', NCube '" + name + "'");
                }
                List<Column> cols = new ArrayList<Column>();
                cols.add(column);
                coordinates.put(axisNameLowcase, cols);
            }
View Full Code Here


            final Axis axis = entry.getValue();
            final Object value = coordinate.get(entry.getKey());
            final Column column = axis.findColumn((Comparable) value);
            if (column == null)
            {
                throw new CoordinateNotFoundException("Value '" + value + "' not found on axis '" + axis.getName() + "', NCube '" + name + "'");
            }
            key.add(column);
        }

        return key;
View Full Code Here

        for (final Comparable value : wildcardSet)
        {
            final Column column = wildcardAxis.findColumn(value);
            if (column == null)
            {
                throw new CoordinateNotFoundException("Value '" + value + "' not found using Set on axis '" + wildcardAxis.getName() + "', NCube '" + name + "'");
            }

            columns.add(column);
        }
View Full Code Here

                return (T) cellValue;
            }
        }
        catch (CoordinateNotFoundException e)
        {
            throw new CoordinateNotFoundException("Coordinate not found in NCube '" + name + "'\n" + stackToString(), e);
        }
        catch (Exception e)
        {
            throw new RuntimeException("Error occurred executing CommandCell in NCube '" + name + "'\n" + stackToString(), e);
        }
View Full Code Here

            else if (axis.isMultiMatch())
            {   // For a multiMatch axis, only the columns that match the input coordinate are returned
                List<Column> cols = axis.findColumns(value);
                if (cols == null || cols.size() < 1)
                {
                    throw new CoordinateNotFoundException("Value '" + value + "' not found on multi-match axis '" + axis.getName() + "', NCube '" + name + "'");
                }
                coordinates.put(axisNameLowcase, cols);
            }
            else
            {   // Find the single column that binds to the input coordinate on a regular axis.
                final Column column = axis.findColumn(value);
                if (column == null)
                {
                    throw new CoordinateNotFoundException("Value '" + value + "' not found on axis '" + axis.getName() + "', NCube '" + name + "'");
                }
                List<Column> cols = new ArrayList<Column>();
                cols.add(column);
                coordinates.put(axisNameLowcase, cols);
            }
View Full Code Here

            final Axis axis = entry.getValue();
            final Object value = coordinate.get(entry.getKey());
            final Column column = axis.findColumn((Comparable) value);
            if (column == null)
            {
                throw new CoordinateNotFoundException("Value '" + value + "' not found on axis '" + axis.getName() + "', NCube '" + name + "'");
            }
            key.add(column);
        }

        return key;
View Full Code Here

        for (final Comparable value : wildcardSet)
        {
            final Column column = wildcardAxis.findColumn(value);
            if (column == null)
            {
                throw new CoordinateNotFoundException("Value '" + value + "' not found using Set on axis '" + wildcardAxis.getName() + "', NCube '" + name + "'");
            }

            columns.add(column);
        }
View Full Code Here

                final CommandCell cmd = (CommandCell) cellValue;
                cellValue = (T) cmd.run(prepareExecutionContext(coord, output));
            }
            catch (CoordinateNotFoundException e)
            {
                throw new CoordinateNotFoundException("Coordinate not found in NCube '" + name + "'\n" + stackToString(), e);
            }
            catch (Exception e)
            {
                throw new RuntimeException("Error occurred executing CommandCell in NCube '" + name + "'\n" + stackToString(), e);
            }
View Full Code Here

            else
            {   // Find the single column that binds to the input coordinate on a regular axis.
                final Column column = axis.findColumn(value);
                if (column == null)
                {
                    throw new CoordinateNotFoundException("Value '" + value + "' not found on axis '" + axis.getName() + "', NCube '" + name + "'");
                }
                columns.add(column);
                coordinates.put(axis.getName(), columns);
            }
        }
View Full Code Here

            final Axis axis = entry.getValue();
            final Object value = coordinate.get(entry.getKey());
            final Column column = axis.findColumn((Comparable) value);
            if (column == null)
            {
                throw new CoordinateNotFoundException("Value '" + value + "' not found on axis '" + axis.getName() + "', NCube '" + name + "'");
            }
            key.add(column);
        }

        return key;
View Full Code Here

TOP

Related Classes of com.cedarsoftware.ncube.exception.CoordinateNotFoundException

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.