def METHOD_NAME(self, name: str) -> t.Type[ContentType]:
    """
    Like get_content_type, but errors out instead of returning None.
    """
    content_type = self.get_content_type(name)
    if content_type is None:
        raise ValueError(
            f"ContentType: '{name}' could not be resolved to a configured ContentType."
        )
    return content_type