Exceptions in PKGBUILDer¶
Author: | Chris Warrick <chris@chriswarrick.com> |
---|---|
Copyright: | © 2011-2023, Chris Warrick. |
License: | BSD (see /LICENSE or Appendix B.) |
Date: | 2023-01-30 |
Version: | 4.3.2 |
New in version 3.0.0.
Starting with version 3.0.0, the exceptions were split up into multiple ones,
all inheriting from PBException. All exceptions have two guaranteed
attributes: msg
, which is a more-or-less human-friendly message, and
src
, which explains where the problem came from (string or instance of an
object, depending on the exception — it is clearly visible in the source code).
Defines PKGBUILDer exceptions.
Copyright: | © 2011-2023, Chris Warrick. |
---|---|
License: | BSD (see /LICENSE). |
-
exception
pkgbuilder.exceptions.
PBException
(msg, source, exit=True, *args, **kwargs)[source]¶ Base exception for PKGBUILDer.
-
exception
pkgbuilder.exceptions.
AURError
(msg, exit=True, *args, **kwargs)[source]¶ AUR-related errors.
-
exception
pkgbuilder.exceptions.
MakepkgError
(retcode, exit=True, *args, **kwargs)[source]¶ makepkg return codes.
-
exception
pkgbuilder.exceptions.
NetworkError
(msg, source, exit=True, *args, **kwargs)[source]¶ Network-related errors.
-
exception
pkgbuilder.exceptions.
ConnectionError
(msg, source, exit=True, *args, **kwargs)[source]¶ A connection error.
-
exception
pkgbuilder.exceptions.
HTTPError
(source, origin, exit=True, *args, **kwargs)[source]¶ An HTTP error.
-
exception
pkgbuilder.exceptions.
PackageError
(msg, source, exit=True, *args, **kwargs)[source]¶ Package-related errors.
-
exception
pkgbuilder.exceptions.
PackageNotFoundError
(name, source, exit=True, *args, **kwargs)[source]¶ Errors raised when a package cannot be found.