def __init__(self, schema, first_dir, second_dir, *args, **kwargs):
        """Constructor.

        :param schema: duplicate schema path.
        :param first_dir: first directory where the schema was found.
        :param second_dir: second directory where the schema was found.
        """
        self.schema = schema
        super(JSONSchemaDuplicate, self).__init__(
            'Schema "{schema}" defined in multiple ' +
            'directories: "{first}" and "{second}"'.format(
                schema=schema,
                first=first_dir,
                second=second_dir),
            *args, **kwargs)
def __init__ ( self , schema , first_dir , second_dir , * args , ** kwargs ) : self . schema = schema super ( JSONSchemaDuplicate , self ) . __init__ ( 'Schema "{schema}" defined in multiple ' + 'directories: "{first}" and "{second}"' . format ( schema = schema , first = first_dir , second = second_dir ) , * args , ** kwargs )
Constructor.

        :param schema: duplicate schema path.
        :param first_dir: first directory where the schema was found.
        :param second_dir: second directory where the schema was found.