Package org.apache.xmlbeans

Examples of org.apache.xmlbeans.XmlRuntimeException


                {
                    continue;
                }
                catch (Exception e)
                {
                    throw new XmlRuntimeException("Troublesome union exception caused by unexpected " + e, e);
                    // if (XmlBeans.ASSERTS) XmlBeans.assertTrue(false, "Unexpected " + e);
                    // continue;
                }
            }
        }
View Full Code Here


                XmlOptions opts = new XmlOptions().setDocumentType(XmlBeans.typeForClass(_xbeanClass));
                _impl = XmlBeans.getContextTypeLoader().parse(xmlText, null, opts);
            }
            catch(XmlException xe)
            {
                throw new XmlRuntimeException(xe);
            }
            catch(ClassNotFoundException cnfe)
            {
                throw new XmlRuntimeException(cnfe);
            }
        }
View Full Code Here

                for (int i = 0 ; c.toNextSelection() ; i++)
                {
                    if ((selections[ i ] = c.getObject()) == null)
                    {
                        throw
                            new XmlRuntimeException(
                                "Path must select only elements " +
                                    "and attributes" );
                    }
                }
            }
View Full Code Here

            TypeStore typeStore = get_store();

            if (typeStore == null)
            {
                throw
                    new XmlRuntimeException(
                        "Cannot do XQuery on XML Value Objects" );
            }

            try
            {
                return _typedArray(typeStore.exec_query( queryExpr, options ));
            }
            catch (XmlException e)
            {
                throw new XmlRuntimeException( e );
            }
        }
    }
View Full Code Here

                    }
                }
            }
            catch (InterruptedException e)
            {
                throw new XmlRuntimeException(e);
            }
            finally
            {
                if (acquired)
                    GlobalLock.release();
View Full Code Here

        {
            return (JaxenXBeansDelegate.SelectPathInterface)_constructor.newInstance(new Object[] {xpath});
        }
        catch (Exception e)
        {
            throw new XmlRuntimeException(e);
        }
    }
View Full Code Here

            }

        }
        catch (InterruptedException e)
        {
            throw new XmlRuntimeException(e);
        }
        finally
        {
            if (acquired)
                GlobalLock.release();
View Full Code Here

            }

        }
        catch (InterruptedException e)
        {
            throw new XmlRuntimeException(e);
        }
        finally
        {
            if (acquired)
                GlobalLock.release();
View Full Code Here

    private static void throwRuntimeException ( Throwable e )
    {
        if (e instanceof RuntimeException)
            throw (RuntimeException) e;
       
        XmlRuntimeException rte = new XmlRuntimeException( e.toString(), e );

        throw rte;
    }
View Full Code Here

        {
            return ((Boolean)JaxbCodeGeneratorHolder._jaxbCodeGeneratorMethod.invoke(null, new Object[] { saver, sourcefiles, sourcedir, classesdir, errors })).booleanValue();
        }
        catch (InvocationTargetException e)
        {
            XmlRuntimeException e2 = new XmlRuntimeException(e.getMessage());
            e2.initCause(e);
            throw e2;
        }
        catch (IllegalAccessException e)
        {
            XmlRuntimeException e2 = new XmlRuntimeException(e.getMessage());
            e2.initCause(e);
            throw e2;
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.xmlbeans.XmlRuntimeException

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.