|
1 | | -# Copyright (C) 2015-2022 Germar Reitze |
| 1 | +# SPDX-FileCopyrightText: © 2015-2022 Germar Reitze |
2 | 2 | # |
3 | | -# This program is free software; you can redistribute it and/or modify |
4 | | -# it under the terms of the GNU General Public License as published by |
5 | | -# the Free Software Foundation; either version 2 of the License, or |
6 | | -# (at your option) any later version. |
| 3 | +# SPDX-License-Identifier: GPL-2.0-or-later |
7 | 4 | # |
8 | | -# This program is distributed in the hope that it will be useful, |
9 | | -# but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 | | -# GNU General Public License for more details. |
12 | | -# |
13 | | -# You should have received a copy of the GNU General Public License along |
14 | | -# with this program; if not, write to the Free Software Foundation, Inc., |
15 | | -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 5 | +# This file is part of the program "Back In Time" which is released under GNU |
| 6 | +# General Public License v2 (GPLv2). See LICENSES directory or go to |
| 7 | +# <https://spdx.org/licenses/GPL-2.0-or-later.html>. |
16 | 8 |
|
17 | 9 | class BackInTimeException(Exception): |
18 | 10 | pass |
19 | 11 |
|
| 12 | + |
20 | 13 | class MountException(BackInTimeException): |
21 | 14 | pass |
22 | 15 |
|
| 16 | + |
23 | 17 | class NoPubKeyLogin(MountException): |
24 | 18 | pass |
25 | 19 |
|
| 20 | + |
26 | 21 | class KnownHost(MountException): |
27 | 22 | pass |
28 | 23 |
|
| 24 | + |
29 | 25 | class HashCollision(BackInTimeException): |
30 | 26 | pass |
31 | 27 |
|
| 28 | + |
32 | 29 | class EncodeValueError(BackInTimeException): |
33 | 30 | pass |
34 | 31 |
|
| 32 | + |
35 | 33 | class StopException(BackInTimeException): |
36 | 34 | pass |
37 | 35 |
|
| 36 | + |
38 | 37 | class Timeout(BackInTimeException): |
39 | 38 | pass |
40 | 39 |
|
| 40 | + |
41 | 41 | class LastSnapshotSymlink(BackInTimeException): |
42 | 42 | pass |
43 | 43 |
|
| 44 | + |
44 | 45 | class InvalidChar(BackInTimeException): |
45 | 46 | def __init__(self, msg): |
46 | 47 | self.msg = msg |
47 | 48 |
|
48 | 49 | def __str__(self): |
49 | 50 | return self.msg |
50 | 51 |
|
| 52 | + |
51 | 53 | class InvalidCmd(BackInTimeException): |
52 | 54 | def __init__(self, msg): |
53 | 55 | self.msg = msg |
54 | 56 |
|
55 | 57 | def __str__(self): |
56 | 58 | return self.msg |
57 | 59 |
|
| 60 | + |
58 | 61 | class LimitExceeded(BackInTimeException): |
59 | 62 | def __init__(self, msg): |
60 | 63 | self.msg = msg |
61 | 64 |
|
62 | 65 | def __str__(self): |
63 | 66 | return self.msg |
64 | 67 |
|
| 68 | + |
65 | 69 | class PermissionDeniedByPolicy(BackInTimeException): |
66 | 70 | def __init__(self, msg): |
67 | 71 | self.msg = msg |
|
0 commit comments