Package org.apache.cocoon.util.location

Examples of org.apache.cocoon.util.location.LocatedRuntimeException


        Map objectModel = processInfoProvider.getObjectModel();
        Object result;
        try {
            result = JavaScriptHelper.callFunction(function, null /*this*/, new Object[] {filter}, objectModel);
        } catch (JavaScriptException e) {
            throw new LocatedRuntimeException("Error building JS selection list", e, getLocation());
        }
       
        // Start the selection-list
        contentHandler.startElement(FormsConstants.INSTANCE_NS, SELECTION_LIST_EL, FormsConstants.INSTANCE_PREFIX_COLON + SELECTION_LIST_EL, XMLUtils.EMPTY_ATTRIBUTES);

View Full Code Here


            ProcessingException pe = (ProcessingException)thr;
            pe.addLocation(location);
            throw pe;

        } else if (thr instanceof LocatedRuntimeException) {
            LocatedRuntimeException re = (LocatedRuntimeException)thr;
            re.addLocation(location);
            // Rethrow
            throw re;
        }
       
        throw new ProcessingException(message, thr, location);
View Full Code Here

        Map objectModel = ContextHelper.getObjectModel(this.context);
        Object result;
        try {
            result = JavaScriptHelper.callFunction(function, null /*this*/, new Object[] {filter}, objectModel);
        } catch (JavaScriptException e) {
            throw new LocatedRuntimeException("Error building JS selection list", e, getLocation());
        }
       
        // Start the selection-list
        contentHandler.startElement(FormsConstants.INSTANCE_NS, SELECTION_LIST_EL, FormsConstants.INSTANCE_PREFIX_COLON + SELECTION_LIST_EL, XMLUtils.EMPTY_ATTRIBUTES);

View Full Code Here

            return new PropertyAwareConfiguration(config, this.settings, this.logger);
        } catch (Exception e) {
            // This will never happen as the DefaultConfiguration constructor will always create a
            // proper object from which to create the PropertyAwareConfiguration
            // But if it somehow does, just throw a generic runtime exception
            throw new LocatedRuntimeException("", e);
        }
    }
View Full Code Here

            ProcessingException pe = (ProcessingException)thr;
            pe.addLocation(location);
            throw pe;

        } else if (thr instanceof LocatedRuntimeException) {
            LocatedRuntimeException re = (LocatedRuntimeException)thr;
            re.addLocation(location);
            // Rethrow
            throw re;
        }
       
        throw new ProcessingException(message, thr, location);
View Full Code Here

            ProcessingException pe = (ProcessingException)thr;
            pe.addLocation(location);
            throw pe;

        } else if (thr instanceof LocatedRuntimeException) {
            LocatedRuntimeException re = (LocatedRuntimeException)thr;
            re.addLocation(location);
            // Rethrow
            throw re;
        }
       
        throw new ProcessingException(message, thr, location);
View Full Code Here

        Map objectModel = ContextHelper.getObjectModel(this.context);
        Object result;
        try {
            result = JavaScriptHelper.callFunction(function, null /*this*/, new Object[] {filter}, objectModel);
        } catch (JavaScriptException e) {
            throw new LocatedRuntimeException("Error building JS selection list", e, getLocation());
        }
       
        // Start the selection-list
        contentHandler.startElement(FormsConstants.INSTANCE_NS, SELECTION_LIST_EL, FormsConstants.INSTANCE_PREFIX_COLON + SELECTION_LIST_EL, XMLUtils.EMPTY_ATTRIBUTES);

View Full Code Here

            ProcessingException pe = (ProcessingException)thr;
            pe.addLocation(location);
            throw pe;

        } else if (thr instanceof LocatedRuntimeException) {
            LocatedRuntimeException re = (LocatedRuntimeException)thr;
            re.addLocation(location);
            // Rethrow
            throw re;
        }
       
        throw new ProcessingException(message, thr, location);
View Full Code Here

            return new PropertyAwareConfiguration(config, this.settings, this.logger);
        } catch (Exception e) {
            // This will never happen as the DefaultConfiguration constructor will always create a
            // proper object from which to create the PropertyAwareConfiguration
            // But if it somehow does, just throw a generic runtime exception
            throw new LocatedRuntimeException("", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.cocoon.util.location.LocatedRuntimeException

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.