def __init__(self, file=None, extra_body='<STR_LIT>'):
body = '<STR_LIT>'<EOL>if file:<EOL><INDENT>file = os.path.abspath(file)<EOL>body += '<STR_LIT>'.format(file)<EOL><DEDENT>body += '<STR_LIT>'.format(file)<EOL>if extra_body:<EOL><INDENT>body += '<STR_LIT>'.format(extra_body)<EOL><DEDENT>super(InvalidConfig, self).__init__(body)<EOL>
:param str file: Path to config file
:param extra_body: complementary message