code: def get_element_by_class_name_or_raise(self, class_name):
          
          if class_name not in self._elements:
              raise InvalidClassError(u'Class does not exist: {}'.format(class_name))
  
          return self._elements[class_name]
docs: Return the SchemaElement for the specified class name, asserting that it exists.