<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_object_by_name(self, name):
 """Find an object :param name: Name of object. Case-sensitive. :rtype: Object if found, otherwise ValueError """

        for obj in self.objects:
            if obj.name == name:
                return obj
        raise ValueError