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

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

        ExtensionError.__init__(self, self.message.format(
            os.path.realpath(filename), location, detail
        ))
Exemplo 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
        ))
Exemplo 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
        ))
Exemplo 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__
        ))
Exemplo n.º 6
0
    def __init__(self, error):
        """
        """

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

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

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

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