Package com.volantis.xml.pipeline.sax.impl.operations.tryop

Examples of com.volantis.xml.pipeline.sax.impl.operations.tryop.TryModel


* Base class for error functions.
*/
public abstract class AbstractErrorFunction extends AbstractFunction {

    protected SAXParseException getException (ExpressionContext context) throws ExpressionException {
        TryModel model = (TryModel) ((SimpleExpressionContext) context).findObject(TryModel.class);
        if (model == null) {
            throw new ExpressionException("Error functions must be used inside try block.");
        }

        List exceptions = model.getExceptions();
        SAXParseException x = exceptions.isEmpty() ? null : (SAXParseException) exceptions.get(0);
        return x;   
    }
View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.impl.operations.tryop.TryModel

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.