Package com.volantis.mcs.papi

Examples of com.volantis.mcs.papi.PAPIException


            pageContext.pushContainerInstance(paneInstance);
        } else if (pageContext.getCurrentPane() == null) {
            // this element doesn't have a pane name specified and the pane stack is
            // empty. This is not allowed.
            throw new PAPIException(
                    exceptionLocalizer.format("pane-name-not-found"));
        }

        // Fake an open element so that whitespace is handled normally since we
        // have no element to represent pane at the moment.
View Full Code Here


        // Get the expression to be evaluated
        ExprAttributes attributes = (ExprAttributes) papiAttributes;
        String expression = attributes.getExpr();

        if ("".equals(expression)) {
            throw new PAPIException(exceptionLocalizer.format(
                    "cannot-evaluate-empty-expression"));
        } else if (expression != null) {
            try {
                Expression expr = MCSExpressionHelper.createUnquotedExpression(
                        expression, context);
                result = MCSExpressionHelper.evaluateBooleanExpression(expr,
                        context);
            } catch (ExpressionException e) {
                // MCSPA0007X="Could not evaluate expression: {1}"
                throw new PAPIException(
                        exceptionLocalizer.format(
                                "expression-evaluation-failure",
                                expression),
                        e);
            }
View Full Code Here

                attributes.getClientVariableName());
        String clientVariableName = getPlainText(reference);

        // One of value and clientVariableName must be specified.
        if (value == null && clientVariableName == null) {
            throw new PAPIException(exceptionLocalizer.format(
                    "xfimplicit-value-or-client-variable-name"));
        }

        pattributes.setClientVariableName(clientVariableName);
View Full Code Here

                    pageContext.pushContainerInstance(paneInstance);
                } else {
                    // The target attribute is "pane" and the pane attibribute
                    // invalid. This is not allowed.
                    throw new PAPIException(
                            exceptionLocalizer.format("pane-name-required"));
                }
            }

            // Push this element onto the stack of elements.
View Full Code Here

            } catch (ProtocolException e) {

                logger.error("rendering-error",
                        new Object[]{pattributes.getTagName()}, e);
                // MCSPA0071X="Error during {0} rendering"
                new PAPIException(
                        exceptionLocalizer.format("rendering-error",
                                pattributes.getTagName()),
                        e);
            }
View Full Code Here

        Writer writer = getNativeWriter(context);
        try {
            writer.write(content);
        } catch (IOException e) {
            throw new PAPIException(e);
        }
    }
View Full Code Here

        // Do the rest of the field processing.
        try {
            doField(pageContext, attributes, pattributes);
        } catch (ProtocolException e) {
            logger.error("rendering-error", pattributes.getTagName(), e);
            throw new PAPIException(
                    exceptionLocalizer.format("rendering-error",
                            pattributes.getTagName()),
                    e);
        }
View Full Code Here

                // inclusion in something.
                protocol.openInclusionPage(pattributes);
            }
        } catch (LayoutException e) {
            logger.error("unexpected-exception", e);
            throw new PAPIException(e);
        } catch (RepositoryException e) {
            logger.error("repository-exception", e);
            throw new PAPIException(e);
        } catch (IOException e) {
            logger.error("unexpected-ioexception", e);
            throw new PAPIException(e);
        } catch (ProtocolException e) {

            logger.error("rendering-error", pattributes.getTagName(), e);
            throw new PAPIException(
                    exceptionLocalizer.format("rendering-error",
                            pattributes.getTagName()),
                    e);
        }
View Full Code Here

            try {
                mediaAgent.waitForComplete();
            } catch (MediaAgentException e) {
                logger.error("rendering-error", "CanvasElement", e);

                throw new PAPIException(exceptionLocalizer.format(
                        "rendering-error", "CanvasElement"), e);
            }
        }
    }
View Full Code Here

            protocol.setWriteHead(previousWriteHead);

            return returnCode;
        } catch (IOException e) {
            logger.error("unexpected-ioexception", e);
            throw new PAPIException(e);
        } catch (ProtocolException e) {
            logger.error("unexpected-exception", e);
            throw new PAPIException(e);
        }
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.papi.PAPIException

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.