Package br.com.caelum.tubaina

Examples of br.com.caelum.tubaina.TubainaException


public class JavaTag implements Tag<JavaChunk> {

  private static final String MESSAGE = "[java] Tag is deprecated and can't be used anymore. Use [code java] instead";

  public JavaTag(Indentator indentator) {
    throw new TubainaException(MESSAGE);
  }
View Full Code Here


    throw new TubainaException(MESSAGE);
  }
 
  @Override
  public String parse(JavaChunk chunk) {
    throw new TubainaException(MESSAGE);
  }
View Full Code Here

public class RubyTag implements Tag<RubyChunk> {

  private static final String MESSAGE = "[ruby] Tag is deprecated and can't be used anymore. Use [code ruby] instead";

  public RubyTag(Indentator indentator) {
    throw new TubainaException(MESSAGE);
  }
View Full Code Here

    throw new TubainaException(MESSAGE);
  }
 
  @Override
  public String parse(RubyChunk chunk) {
    throw new TubainaException(MESSAGE);
  }
View Full Code Here

    private void configureFreemarker() {
        cfg = new Configuration();
        try {
            cfg.setDirectoryForTemplateLoading(templateDir);
        } catch (IOException e) {
            new TubainaException("Couldn't load freemarker templates for Flat HTML mode", e);
        }
        cfg.setObjectWrapper(new BeansWrapper());
    }
View Full Code Here

        root.mkdir();
        dirTree.add(rootDir);
        for (Chapter c : b.getChapters()) {
            String chapDir = rootDir + "/" + Utilities.toDirectoryName(null, c.getTitle());
            if (dirTree.contains(chapDir)) {
                throw new TubainaException("Doubled archive name: " + c.getTitle());
            }
            File chapter = new File(parent, chapDir);
            chapter.mkdir();
            dirTree.add(chapDir);
View Full Code Here

                foundInvalidXHTML = true;
                LOG.warn("This is not a xhtml valid file: " + s + "/index.html");
            }
        }
        if (foundInvalidXHTML) {
            throw new TubainaException("Some xhtml generated is not valid. See "
                    + XHTMLValidator.validatorLogFile + " for further information");
        }

    }
View Full Code Here

    cfg = new Configuration();
    try {
        cfg.setDefaultEncoding("UTF-8");
      cfg.setDirectoryForTemplateLoading(templateDir);
    } catch (IOException e) {
      throw new TubainaException("Couldn't load freemarker template for Single HTML mode", e);
    }
    cfg.setObjectWrapper(new BeansWrapper());
  }
View Full Code Here

TOP

Related Classes of br.com.caelum.tubaina.TubainaException

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.