repology_client.exceptions#
repology_client.exceptions#
Exceptions this library can raise.
- exception repology_client.exceptions.RepologyException#
Bases:
ExceptionBase class for all our exceptions. Pinkie promise.
- exception repology_client.exceptions.InvalidInput#
Bases:
RepologyExceptionA function was given invalid parameters.
- exception repology_client.exceptions.EmptyResponse#
Bases:
RepologyExceptionRaised if API returned empty object. Is it an error or everything’s correct, just nothing matched your search criteria? Who knows.
- exception repology_client.exceptions.RepoNotFound(repo: str)#
Bases:
RepologyExceptionRaised if Repology could not find the requested repository and returned “404 Not Found” HTTP code.
repology_client.exceptions.resolve#
Exceptions that can be raised by the “Project by package name” tool.
- exception repology_client.exceptions.resolve.PackageResolveException(pkg: _ResolvePkg, message: str | None = None)#
Bases:
RepologyExceptionBase class for all exceptions related to the “Project by package name” tool.
- property pkg: _ResolvePkg#
Underlying
repology_client.types._ResolvePkgobject.
- exception repology_client.exceptions.resolve.ProjectNotFound(pkg: _ResolvePkg)#
Bases:
PackageResolveExceptionRaised if Repology was requested to get project by package name but responded with the “404 Not Found” HTTP code.
- exception repology_client.exceptions.resolve.MultipleProjectsFound(pkg: _ResolvePkg, names: Iterable[str])#
Bases:
PackageResolveExceptionRaised if Repology was requested to get project by package name without automatic ambiguity resolution and responded with multiple results.
Instances of this exception contain all project names returned by Repology.