Examples of PAPIException


Examples of com.volantis.mcs.papi.PAPIException

        if (attributes.getPrecept() != null) {
            precept = Precept.literal(attributes.getPrecept());

            if (precept == null) {
                throw new PAPIException(exceptionLocalizer.format(
                        "unrecognized-precept-value",
                        attributes.getPrecept()));
            }
        }

        if (attributes.getExpr() != null) {
            ExpressionContext expressionContext =
                    ContextInternals.getEnvironmentContext(context).
                            getExpressionContext();

            try {
                expr = expressionContext.getFactory().
                        createExpressionParser().
                        parse(attributes.getExpr()).evaluate(expressionContext);
            } catch (ExpressionException e) {
                throw new PAPIException(e);
            }
        }

        pageContext.pushSelectState(new SelectState(precept, expr));
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIException

                        "process to the pipeline",
                        pipelineContext.getCurrentLocator(),
                        e));
            }
        } catch (SAXException e) {
            throw new PAPIException(e);
        }

        return inserted;
    }
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIException

                            pipelineContext.getCurrentLocator(),
                            e));
                }
            }
        } catch (SAXException e) {
            throw new PAPIException(e);
        }
    }
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIException

    MarinerPageContext pageContext
      = ContextInternals.getMarinerPageContext (context);

      if (pageContext.insideXDIMECPElement()) {
          throw new PAPIException(EXCEPTION_LOCALIZER.format(
                  "element-not-allowed-inside-xdimecp", papiAttributes.getElementName()));
      }

    PickleAttributes attributes = (PickleAttributes) papiAttributes;
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIException

        // Get the page context from the request
        MarinerPageContext pageContext
                = ContextInternals.getMarinerPageContext(context);

        if (pageContext.insideXDIMECPElement()) {
            throw new PAPIException(EXCEPTION_LOCALIZER.format(
                    "element-not-allowed-inside-xdimecp", papiAttributes.getElementName()));
        }

        if (this.isStylingEnabled) {
            StylingEngine stylingEngine = pageContext.getStylingEngine();
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIException

                throw (RuntimeException) e;
            } else if (e instanceof ProtocolException) {
                // The non-runtime exception we are expecting.
                // Create a PAPI exception to wrap it and pass up the stack.
                logger.error("rendering-error", pattributes.getTagName(), e);
                new PAPIException(
                        exceptionLocalizer.format("rendering-error",
                                pattributes.getTagName()),
                        e);
            } else {
                // Any other non-runtime exception is an error.
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIException

                throw (RuntimeException) e;
            } else if (e instanceof ProtocolException) {
                // The non-runtime exception we are expecting.
                // Create a PAPI exception to wrap it and pass up the stack.
                logger.error("rendering-error", pattributes.getTagName(), e);
                new PAPIException(
                        exceptionLocalizer.format("rendering-error",
                                pattributes.getTagName()),
                        e);
            } else {
                // Any other non-runtime exception is an error.
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIException

            VolantisProtocol protocol = pageContext.getProtocol();
            protocol.writeImage(ia);
        } catch (ProtocolException e) {
            String msg = "Error during altimage rendering";
            logger.error("alt-image-rendering-error", e);
            throw new PAPIException(msg, e);
        }

        return true;
    }
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIException

            VolantisProtocol protocol = pageContext.getProtocol();
            return protocol.writeAltText(altTextAttrs);
        } catch (ProtocolException e) {
            String msg = "Error during alttext rendering";
            logger.error("alt-text-rendering-error", e);
            throw new PAPIException(msg, e);
        }
    }
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIException

            pageContext.initialise(inclusion, errorPage, id, brandName,
                    themeStyleSheets, layoutName);

        } catch (LayoutException e) {
            logger.error("unexpected-exception", e);
            throw new PAPIException(e);
        } catch (PolicyException e) {
            logger.error("unexpected-exception", e);
            throw new PAPIException(e);
        } catch (RepositoryException e) {
            logger.error("repository-exception", e);
            throw new PAPIException(e);
//        } catch (JiBXException e) {
//            logger.error("unexpected-exception", e);
//            throw new PAPIException(e);
//        } catch (IOException e) {
//            logger.error("unexpected-exception", e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.