@staticmethod<EOL><INDENT>def exc_thrown_by_descriptor():<DEDENT>
traceback = sys.exc_info()[<NUM_LIT:2>]<EOL>tb_locals = traceback.tb_frame.f_locals<EOL>if "<STR_LIT>" in tb_locals:<EOL><INDENT>if not isinstance(tb_locals["<STR_LIT>"], Descriptor):<EOL><INDENT>return False<EOL><DEDENT>return True<EOL><DEDENT>return False<EOL>
Return True if the last exception was thrown by a
        Descriptor instance.