nl: raise an ValueError with an argument string "'%s' has no field named '%s'.", with '%s' replaced with self.__class__.__name__ and field, respectively.
code: raise ValueError ( "'%s' has no field named '%s'." % ( self . __class__ . __name__ , field ) )