Mercurial > libervia-backend
comparison sat/core/exceptions.py @ 2562:26edcf3a30eb
core, setup: huge cleaning:
- moved directories from src and frontends/src to sat and sat_frontends, which is the recommanded naming convention
- move twisted directory to root
- removed all hacks from setup.py, and added missing dependencies, it is now clean
- use https URL for website in setup.py
- removed "Environment :: X11 Applications :: GTK", as wix is deprecated and removed
- renamed sat.sh to sat and fixed its installation
- added python_requires to specify Python version needed
- replaced glib2reactor which use deprecated code by gtk3reactor
sat can now be installed directly from virtualenv without using --system-site-packages anymore \o/
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 02 Apr 2018 19:44:50 +0200 |
parents | src/core/exceptions.py@537a4a8075f8 |
children | 56f94936df1e |
comparison
equal
deleted
inserted
replaced
2561:bd30dc3ffe5a | 2562:26edcf3a30eb |
---|---|
1 #!/usr/bin/env python2 | |
2 # -*- coding: utf-8 -*- | |
3 | |
4 # SàT Exceptions | |
5 # Copyright (C) 2011 Jérôme Poisson (goffi@goffi.org) | |
6 | |
7 # This program is free software: you can redistribute it and/or modify | |
8 # it under the terms of the GNU Affero General Public License as published by | |
9 # the Free Software Foundation, either version 3 of the License, or | |
10 # (at your option) any later version. | |
11 | |
12 # This program is distributed in the hope that it will be useful, | |
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 # GNU Affero General Public License for more details. | |
16 | |
17 # You should have received a copy of the GNU Affero General Public License | |
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
19 | |
20 | |
21 class ProfileUnknownError(Exception): | |
22 pass | |
23 | |
24 | |
25 class ProfileNotInCacheError(Exception): | |
26 pass | |
27 | |
28 | |
29 class ProfileNotSetError(Exception): | |
30 """This error raises when no profile has been set (value @NONE@ is found, but it should have been replaced)""" | |
31 | |
32 | |
33 class ProfileConnected(Exception): | |
34 """This error is raised when trying to delete a connected profile.""" | |
35 | |
36 | |
37 class ProfileNotConnected(Exception): | |
38 pass | |
39 | |
40 | |
41 class ProfileKeyUnknown(Exception): | |
42 pass | |
43 | |
44 | |
45 class ClientTypeError(Exception): | |
46 """This code is not allowed for this type of client (i.e. component or not)""" | |
47 | |
48 | |
49 class UnknownEntityError(Exception): | |
50 pass | |
51 | |
52 | |
53 class UnknownGroupError(Exception): | |
54 pass | |
55 | |
56 | |
57 class MissingModule(Exception): | |
58 # Used to indicate when a plugin dependence is not found | |
59 # it's nice to indicate when to find the dependence in argument string | |
60 pass | |
61 | |
62 | |
63 class NotFound(Exception): | |
64 pass | |
65 | |
66 | |
67 class DataError(Exception): | |
68 pass | |
69 | |
70 | |
71 class ConflictError(Exception): | |
72 pass | |
73 | |
74 | |
75 class TimeOutError(Exception): | |
76 pass | |
77 | |
78 | |
79 class CancelError(Exception): | |
80 pass | |
81 | |
82 | |
83 class InternalError(Exception): | |
84 pass | |
85 | |
86 | |
87 class FeatureNotFound(Exception): # a disco feature/identity which is needed is not present | |
88 pass | |
89 | |
90 | |
91 class BridgeInitError(Exception): | |
92 pass | |
93 | |
94 | |
95 class BridgeExceptionNoService(Exception): | |
96 pass | |
97 | |
98 | |
99 class DatabaseError(Exception): | |
100 pass | |
101 | |
102 | |
103 class PasswordError(Exception): | |
104 pass | |
105 | |
106 | |
107 class PermissionError(Exception): | |
108 pass | |
109 | |
110 | |
111 class ParsingError(Exception): | |
112 pass | |
113 | |
114 | |
115 # Something which need to be done is not available yet | |
116 class NotReady(Exception): | |
117 pass |