Package com.volantis.synergetics

Examples of com.volantis.synergetics.UndeclaredThrowableException


                        elements[i] = element;
                        element.detach();
                        i++;
                    }
                } catch (IOException e) {
                    throw new UndeclaredThrowableException(e);
                } catch (JDOMException e) {
                    throw new UndeclaredThrowableException(e);
                }
            }
        }

        return elements;
View Full Code Here


            // Execute the XPath to select all required decendent nodes
            try {
                decendents = xpath.selectNodes(ancestor);
            } catch (XPathException e) {
                throw new UndeclaredThrowableException(e);
            }

            // Check the count limit constraint
            if (decendents.size() > maxCount) {
                result = true;
View Full Code Here

                    new JAXPTransformerMetaFactory(),
                    new DefaultJDOMFactory(), false);
        } catch (IOException e) {
            // PartInitExceptions are not logged by Eclipse so throw an
            // UndeclaredThrowable...
            throw new UndeclaredThrowableException(e, e.getMessage());
        } catch (RepositoryException e) {
            // PartInitExceptions are not logged by Eclipse so throw an
            // UndeclaredThrowable...
            throw new UndeclaredThrowableException(e, e.getMessage());
        }

        setTitle(file.getName());
        setSite(editorSite);
        setInput(editorInput);
View Full Code Here

            xmlReader.setProperty(
                    "http://apache.org/xml/properties/schema/external-schemaLocation",
                    schemata.getXSISchemaLocation());

        } catch (SAXException e) {
            throw new UndeclaredThrowableException(e);
        }
    }
View Full Code Here

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

                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

        try {
            InputSource inputSource = resolver.resolveEntity(null,
                    PolicySchemas.MARLIN_LPDM_CURRENT.getLocationURL());
            new SimpleSchemaParser(schema).parse(inputSource.getSystemId());
        } catch (SAXException e) {
            throw new UndeclaredThrowableException(e,
                    "There was a problem parsing the schema (" +
                    e.getMessage() + ")");
        } catch (IOException e) {
            throw new UndeclaredThrowableException(e,
                    "There was a problem accessing the schema (" +
                    e.getMessage() + ")");
        }
    }
View Full Code Here

                }
            } else if (resource instanceof IFile) {
                addFileToScope(fileMembers, (IFile) resource, fileExtensions);
            }
        } catch (CoreException e) {
            throw new UndeclaredThrowableException(e);
        }
    }
View Full Code Here

    public String retrieveRootDeviceName() {
        String rootDeviceName = null;
        try {
            rootDeviceName = accessor.getRootDeviceName();
        } catch (RepositoryException e) {
            throw new UndeclaredThrowableException(e, e.getMessage());
        }

        return rootDeviceName;
    }
View Full Code Here

                    String fallback = accessor.getFallbackDeviceName(deviceName);
                    resolvedPolicy = resolvePolicy(fallback, policyName);
                }
            } catch (RepositoryException e) {
                // Panic - could not access the root device.
                throw new UndeclaredThrowableException(e, e.getMessage());
            }
        } else {
            resolvedPolicy = new ResolvedDevicePolicy(deviceName, policy);
        }
        return resolvedPolicy;
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.