コード例 #1
0
ファイル: errors.py プロジェクト: i386x/abcdoc
    def __init__(self, template, where):
        """
        """

        ExtensionError.__init__(self, self.message.format(
            template.locals["_templatedir"], where
        ))
コード例 #2
0
ファイル: errors.py プロジェクト: i386x/abcdoc
    def __init__(self, filename, location, detail):
        """
        """

        ExtensionError.__init__(self, self.message.format(
            os.path.realpath(filename), location, detail
        ))
コード例 #3
0
ファイル: errors.py プロジェクト: i386x/abcdoc
    def __init__(self, yamlobj, detail):
        """
        """

        mark = yamlobj.mark
        ExtensionError.__init__(self, self.message.format(
            mark.name, mark.line + 1, mark.column + 1, detail
        ))
コード例 #4
0
ファイル: errors.py プロジェクト: i386x/abcdoc
    def __init__(self, name):
        """
        """

        mark = name.mark
        ExtensionError.__init__(self, self.message.format(
            mark.name, mark.line + 1, mark.column + 1, name
        ))
コード例 #5
0
ファイル: errors.py プロジェクト: i386x/abcdoc
    def __init__(self, param, obj, objtype):
        """
        """

        mark = param.mark
        ExtensionError.__init__(self, self.message.format(
            mark.name, mark.line + 1, mark.column + 1, param,
            obj.__type__.__name__, objtype.__name__
        ))
コード例 #6
0
ファイル: errors.py プロジェクト: i386x/abcdoc
    def __init__(self, error):
        """
        """

        ExtensionError.__init__(self, self.message.format(str(error)))
コード例 #7
0
ファイル: errors.py プロジェクト: i386x/abcdoc
    def __init__(self, filename):
        """
        """

        ExtensionError.__init__(self, self.message.format(filename))
コード例 #8
0
ファイル: errors.py プロジェクト: i386x/abcdoc
    def __init__(self, detail):
        """
        """

        ExtensionError.__init__(self, detail)
コード例 #9
0
ファイル: type_page.py プロジェクト: i386x/abcdoc
    def __init__(self, detail):
        """
        """

        ExtensionError.__init__(self, message.format(detail))