def METHOD_NAME(self) -> None:
    """Verify that the registry is accessible and the configured repo exists.
    Raises:
        RegistryError: If there is an error verifying the registry.
    """
    _logger.debug("Verifying Elastic Container Registry.")
    try:
        session = self.environment.get_session()
        client = session.client("ecr")
        response = client.describe_repositories(repositoryNames=[self.repo_name])
        self.uri = response["repositories"][0]["repositoryUri"].split("/")[0]
    except botocore.exceptions.ClientError as e:
        code = e.response["Error"]["Code"]
        msg = e.response["Error"]["Message"]
        # TODO: Log the code and the message here?
        raise LaunchError(
            f"Error verifying Elastic Container Registry: {code} {msg}"
        )