Module rugged.exceptions.repository_error
Expand source code
from rugged.lib.logger import get_logger
from tuf.api.exceptions import RepositoryError
log = get_logger()
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
Classes
class RuggedRepositoryError (msg='The repository could not load a repository at the given path.')
-
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.
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
Ancestors
- tuf.api.exceptions.RepositoryError
- builtins.Exception
- builtins.BaseException