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); }
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); }