@Override public void invoke(Writer out) throws JspException, IOException { try { body.render(out == null ? pageContext.getOut() : out); } catch (TemplateException e) { throw new TemplateExceptionWrapperJspException(e); } } });
protected final TemplateModelException toTemplateModelExceptionOrRethrow(Exception e) throws TemplateModelException { if (e instanceof RuntimeException && !isCommonRuntimeException((RuntimeException) e)) { throw (RuntimeException) e; } if (e instanceof TemplateModelException) { throw (TemplateModelException) e; } if (e instanceof TemplateExceptionWrapperJspException) { return toTemplateModelExceptionOrRethrow(((TemplateExceptionWrapperJspException) e).getCause()); } return new TemplateModelException( "Error while invoking the " + StringUtil.jQuote(tagName) + " JSP custom tag; see cause exception", e instanceof TemplateException, e); }
protected final TemplateModelException toTemplateModelExceptionOrRethrow(Exception e) throws TemplateModelException { if (e instanceof RuntimeException && !isCommonRuntimeException((RuntimeException) e)) { throw (RuntimeException) e; } if (e instanceof TemplateModelException) { throw (TemplateModelException) e; } if (e instanceof TemplateExceptionWrapperJspException) { return toTemplateModelExceptionOrRethrow(((TemplateExceptionWrapperJspException) e).getCause()); } return new TemplateModelException( "Error while invoking the " + StringUtil.jQuote(tagName) + " JSP custom tag; see cause exception", e instanceof TemplateException, e); }
@Override public void invoke(Writer out) throws JspException, IOException { try { body.render(out == null ? pageContext.getOut() : out); } catch (TemplateException e) { throw new TemplateExceptionWrapperJspException(e); } } });
protected final TemplateModelException toTemplateModelExceptionOrRethrow(Exception e) throws TemplateModelException { if (e instanceof RuntimeException && !isCommonRuntimeException((RuntimeException) e)) { throw (RuntimeException) e; } if (e instanceof TemplateModelException) { throw (TemplateModelException) e; } if (e instanceof TemplateExceptionWrapperJspException) { return toTemplateModelExceptionOrRethrow(((TemplateExceptionWrapperJspException) e).getCause()); } return new TemplateModelException( "Error while invoking the " + StringUtil.jQuote(tagName) + " JSP custom tag; see cause exception", e instanceof TemplateException, e); }
@Override public void invoke(Writer out) throws JspException, IOException { try { body.render(out == null ? pageContext.getOut() : out); } catch (TemplateException e) { throw new TemplateExceptionWrapperJspException(e); } } });