Examples of TemplateNotFoundException


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

        String err = "Error rendering Velocity template: " + templateName;

        getLogger().error(err + ": " + e.getMessage());

        if (e instanceof ResourceNotFoundException) {
            throw new TemplateNotFoundException(err, e);
        }

        if (e instanceof TemplateException) {
            throw (TemplateException) e;
        }
View Full Code Here

Examples of com.astamuse.asta4d.web.dispatch.request.transformer.TemplateNotFoundException

    public Object handle(UrlMappingRule currentRule) {
        String path = super.convertPath(currentRule);
        if (path == null) {
            WebApplicationContext context = WebApplicationContext.getCurrentThreadWebApplicationContext();
            String url = context.getAccessURI();
            return new TemplateNotFoundException("Generically convert from path:" + url);
        } else {
            return path;
        }
    }
View Full Code Here

Examples of com.jeecms.cms.staticpage.exception.TemplateNotFoundException

        if (staticPageSvc.content(content)) {
          list.add(content);
          count++;
        }
      } catch (IOException e) {
        throw new TemplateNotFoundException(
            "content.tplContentNotFound", count, content.getTitle());
      } catch (TemplateException e) {
        throw new TemplateParseException("content.tplContentException",
            count, content.getTitle());
      }
View Full Code Here

Examples of com.sishuok.es.maintain.notification.exception.TemplateNotFoundException

    @Override
    public void notify(final Long userId, final String templateName, final Map<String, Object> context) {
        NotificationTemplate template = notificationTemplateService.findByName(templateName);

        if(template == null) {
            throw new TemplateNotFoundException(templateName);
        }

        NotificationData data = new NotificationData();

        data.setUserId(userId);
View Full Code Here

Examples of org.jahia.services.render.TemplateNotFoundException

                        return "";
                    }
                }
            }
        } else {
            throw new TemplateNotFoundException("Unable to resolve script: "+resource.getResolvedTemplate());
        }
        if (!renderContext.isEditMode()) {
            if (node.hasProperty("j:requiredMode")) {
                String req = node.getProperty("j:requiredMode").getString();
                if (!renderContext.isContributionMode() && req.equals("contribute")) {
View Full Code Here

Examples of org.mifosplatform.template.exception.TemplateNotFoundException

    }

    @Override
    public Template findOneById(final Long id) {
        final Template template = this.templateRepository.findOne(id);
        if (template == null) { throw new TemplateNotFoundException(id); }
        return template;
    }
View Full Code Here

Examples of play.exceptions.TemplateNotFoundException

      VirtualFile tf = Play.getVirtualFile(path);
      if (tf != null && tf.exists()) {
         return tf;
      } else {
         throw new TemplateNotFoundException(path);
      }
   }
View Full Code Here

Examples of play.exceptions.TemplateNotFoundException

         if (ex.isSourceAvailable()) {
            throw ex;
         }
         StackTraceElement element = PlayException.getInterestingStrackTraceElement(ex);
         if (element != null) {
            throw new TemplateNotFoundException(templateName, Play.classes.getApplicationClass(element.getClassName()), element.getLineNumber());
         } else {
            throw ex;
         }
      }
   }
View Full Code Here

Examples of play.exceptions.TemplateNotFoundException

            if (ex.isSourceAvailable()) {
                throw ex;
            }
            StackTraceElement element = PlayException.getInterestingStrackTraceElement(ex);
            if (element != null) {
                throw new TemplateNotFoundException(templateName, Play.classes.getApplicationClass(element.getClassName()), element.getLineNumber());
            } else {
                throw ex;
            }
        }
    }
View Full Code Here

Examples of play.exceptions.TemplateNotFoundException

                ct = ct.substring(0, ct.lastIndexOf("/"));
                name = ct + name.substring(1);
            }
            BaseTemplate.layout.set((BaseTemplate) TemplateLoader.load(name));
        } catch (TemplateNotFoundException e) {
            throw new TemplateNotFoundException(e.getPath(), template.template, fromLine);
        }
    }
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.