Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)
Raised when pdflatex could not build the PDF for some reason.
The "message" of the exception should be the stdout of the build
process.

src/f/t/ftw.pdfgenerator-1.3.0/ftw/pdfgenerator/builder.py   ftw.pdfgenerator(Download)
from StringIO import StringIO
from ftw.pdfgenerator.exceptions import BuildTerminated, PDFBuildFailed
from ftw.pdfgenerator.interfaces import IBuilder, IConfig
from zipfile import ZipFile
from zope.component import getUtility
 
        if not os.path.exists(pdf_path):
            raise PDFBuildFailed('PDF missing.')
 
        return pdf_path
    def _rerun_required(self, stdout):
        if self._rerun_limit == 0:
            raise PDFBuildFailed('Maximum pdf build limit reached.')
 
        self._rerun_limit -= 1

src/f/t/ftw.pdfgenerator-1.3.0/ftw/pdfgenerator/tests/test_builder.py   ftw.pdfgenerator(Download)
 
from ftw.pdfgenerator.builder import Builder
from ftw.pdfgenerator.exceptions import BuildTerminated, PDFBuildFailed
from ftw.pdfgenerator.interfaces import IBuilder, IBuilderFactory
from ftw.pdfgenerator.testing import PREDEFINED_BUILD_DIRECTORY_LAYER