Esempio n. 1
0
    def __init__(self, template, where):
        """
        """

        ExtensionError.__init__(self, self.message.format(
            template.locals["_templatedir"], where
        ))
Esempio n. 2
0
    def __init__(self, filename, location, detail):
        """
        """

        ExtensionError.__init__(self, self.message.format(
            os.path.realpath(filename), location, detail
        ))
Esempio n. 3
0
    def __init__(self, yamlobj, detail):
        """
        """

        mark = yamlobj.mark
        ExtensionError.__init__(self, self.message.format(
            mark.name, mark.line + 1, mark.column + 1, detail
        ))
Esempio n. 4
0
    def __init__(self, name):
        """
        """

        mark = name.mark
        ExtensionError.__init__(self, self.message.format(
            mark.name, mark.line + 1, mark.column + 1, name
        ))
Esempio n. 5
0
    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__
        ))
Esempio n. 6
0
    def __init__(self, error):
        """
        """

        ExtensionError.__init__(self, self.message.format(str(error)))
Esempio n. 7
0
    def __init__(self, filename):
        """
        """

        ExtensionError.__init__(self, self.message.format(filename))
Esempio n. 8
0
    def __init__(self, detail):
        """
        """

        ExtensionError.__init__(self, detail)
Esempio n. 9
0
    def __init__(self, detail):
        """
        """

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