Package com.alibaba.citrus.service.template

Examples of com.alibaba.citrus.service.template.TemplateException


        if (e instanceof TemplateException) {
            throw (TemplateException) e;
        }

        throw new TemplateException(err, e);
    }
View Full Code Here


            error(templateName, e);
        }
    }

    private void error(String templateName, Throwable e) {
        throw new TemplateException("Error rendering FreeMarker template: " + templateName, e);
    }
View Full Code Here

            if (value != null) {
                try {
                    configuration.setSetting(key, value);
                } catch (freemarker.template.TemplateException e) {
                    throw new TemplateException("invalid key and value: " + key + " = " + value, e);
                }
            }
        }
    }
View Full Code Here

                        ev = (EventHandler) ((FastCloneable) ev).createCopy();
                    } else {
                        try {
                            ev = (EventHandler) cloneMethod.invoke(ev);
                        } catch (Exception e) {
                            throw new TemplateException("Could not clone a ContextAware event handler: "
                                    + ev.getClass().getName(), e);
                        }
                    }
                }
View Full Code Here

                    return;
                }
            }
            WebEngine.getEngine().getTemplate(path, templateEncoding).render(map, out);
        } catch (ParseException e) {
            throw new TemplateException(e.getMessage(), e);
        }
    }
View Full Code Here

TOP

Related Classes of com.alibaba.citrus.service.template.TemplateException

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.