Module rugged.exceptions.repository_error

Classes

class RuggedRepositoryError (msg='The repository could not load a repository at the given path.')
Expand source code
class RuggedRepositoryError(RepositoryError):

    def __init__(
        self,
        msg="The repository could not load a repository at the given path."
    ):
        self.msg = msg
        log.debug(f"{self.__class__.__name__}: {msg}")

    def __str__(self):
        return self.msg

An error with a repository's state, such as a missing file. It covers all exceptions that come from the repository side when looking from the perspective of users of metadata API or ngclient.

Ancestors

  • tuf.api.exceptions.RepositoryError
  • builtins.Exception
  • builtins.BaseException