Package com.volantis.synergetics

Examples of com.volantis.synergetics.UndeclaredThrowableException


                    policyTypeElement = xpath.selectSingleElement(rootElement);
                }
            }
        } catch (XPathException e) {
            // There was a problem retrieving the type element.
            throw new UndeclaredThrowableException(e, e.getMessage());
        }
        return policyTypeElement;
    }
View Full Code Here


                while (!categoryPolicyNameIterator.hasNext() &&
                        categoryElementIterator.hasNext()) {
                    try {
                        moveToNextCategory();
                    } catch (RepositoryException e) {
                        throw new UndeclaredThrowableException(e);
                    }
                }
                return categoryPolicyNameIterator.hasNext();
            }

            /**
             * Get the next policy name.
             * @return the policy name
             */
            public Object next() {
                // Move to next category if current category is "exhausted" and
                // there is a next category, or move to the first category.
                if (!categoryPolicyNameIterator.hasNext() &&
                        categoryElementIterator.hasNext()) {
                    try {
                        moveToNextCategory();
                    } catch (RepositoryException e) {
                        throw new UndeclaredThrowableException(e);
                    }
                }
                // Gets the next policy name, or throws a
                // NoSuchElementException if there is no next policy name.
                String policyName = (String) categoryPolicyNameIterator.next();
View Full Code Here

                    }
                }
            }
        } catch (XPathException xpe) {
            // There was a problem selecting the nodes
            throw new UndeclaredThrowableException(xpe, xpe.getMessage());
        }

        // Needed to force the cast on the array to work hence matchArray
        String[] matchArray = new String[matches.size()];
        return (String[]) matches.toArray(matchArray);
View Full Code Here

                }

            }
        } catch (XPathException xpe) {
            // There was a problem selecting the nodes
            throw new UndeclaredThrowableException(xpe, xpe.getMessage());
        }

        // Needed to force the cast on the array to work hence matchArray
        String[] matchArray = new String[matches.size()];
        return (String[]) matches.toArray(matchArray);
View Full Code Here

            try {
                layout.numColumns = element.
                        getAttribute(FormatComposite.COLUMNS_ATTR_NAME).
                        getIntValue();
            } catch (DataConversionException e) {
                throw new UndeclaredThrowableException(e, e.getMessage());
            }
        }

        super.setLayout(layout);
    }
View Full Code Here

        List gridRowFormats;
        try {
            gridRowFormats =
                    rowsXPath.selectNodes(element);
        } catch (XPathException e) {
            throw new UndeclaredThrowableException(e);
        }

        return gridRowFormats;
    }
View Full Code Here

        if (borderWidthAttr != null) {
            int borderWidth = 0;
            try {
                borderWidth = borderWidthAttr.getIntValue();
            } catch (DataConversionException e) {
                throw new UndeclaredThrowableException(e, e.getMessage());
            }
            setBorderLineWidth(borderWidth);
        }

        String bgColorValue = retrieveBackgroundColor();
View Full Code Here

                rowCount =
                        grandParent.getAttribute("rows").getIntValue();
                colCount =
                        grandParent.getAttribute("columns").getIntValue();
            } catch (DataConversionException e) {
                throw new UndeclaredThrowableException(e);
            }

            selectedElements = new ArrayList(numNewRows * colCount);

            // Update the gridElement with the new rowElement count. This must
View Full Code Here

                                };
                                LOGGER.error("device-not-found", params);
                                String message =
                                        EXCEPTION_LOCALIZER.
                                        format("device-not-found", params);
                                throw new UndeclaredThrowableException(new
                                        RepositoryException(message));
                            } else {
                                DeviceODOMElement parent = (DeviceODOMElement)
                                        deviceIDElement.getParent();
                                if (parent == null) {
                                    LOGGER.error("device-no-parent", deviceName);
                                    String message =
                                            EXCEPTION_LOCALIZER.
                                            format("device-no-parent",
                                                    deviceName);
                                    throw new UndeclaredThrowableException(new
                                            RepositoryException(message));
                                } else {
                                    parent.submitRestorableName(deviceName);
                                }
                            }
View Full Code Here

        } catch (NoSuchMethodException e) {
            exception = e;
        }
        this.constructor = constructorInstance;
        if (null != exception) {
            this.initializationException = new UndeclaredThrowableException(
                exception,
                EXCEPTION_LOCALIZER.format("failed-to-load-class", className));
        } else {
            initializationException = null;
        }
View Full Code Here

TOP

Related Classes of com.volantis.synergetics.UndeclaredThrowableException

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.