1..
2  Copyright (C) 2014-2018 Red Hat, Inc.
3
4  This copyrighted material is made available to anyone wishing to use,
5  modify, copy, or redistribute it subject to the terms and conditions of
6  the GNU General Public License v.2, or (at your option) any later version.
7  This program is distributed in the hope that it will be useful, but WITHOUT
8  ANY WARRANTY expressed or implied, including the implied warranties of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
10  Public License for more details.  You should have received a copy of the
11  GNU General Public License along with this program; if not, write to the
12  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
13  02110-1301, USA.  Any Red Hat trademarks that are incorporated in the
14  source code or documentation are not subject to the GNU General Public
15  License and may only be used or replicated with the express permission of
16  Red Hat, Inc.
17
18============
19 Exceptions
20============
21
22.. exception:: dnf.exceptions.Error
23
24  Base class for all DNF Errors.
25
26.. exception:: dnf.exceptions.CompsError
27
28  Used for errors of comps groups like trying to work with group which is not available.
29
30.. exception:: dnf.exceptions.DeprecationWarning
31
32  Used to emit deprecation warnings using Python's :func:`warnings.warning` function.
33
34.. exception:: dnf.exceptions.DepsolveError
35
36  Error during transaction dependency resolving.
37
38.. exception:: dnf.exceptions.DownloadError
39
40  Error during downloading packages from the repositories.
41
42.. exception:: dnf.exceptions.MarkingError
43
44  Error when DNF was unable to find a match for given package / group / module specification.
45
46.. exception:: dnf.exceptions.MarkingErrors
47
48  Categorized errors during processing of the request. The available error categories are ``no_match_pkg_specs`` for missing packages, ``error_pkg_specs`` for broken packages, ``no_match_group_specs`` for missing groups or modules, ``error_group_specs`` for broken groups or modules and ``module_depsolv_errors`` for modular dependency problems.
49
50.. exception:: dnf.exceptions.RepoError
51
52  Error when loading repositories.
53