Mercurial > libervia-backend
annotate src/core/exceptions.py @ 590:56531f9e9ac7
Fix pep8 support in src/tools.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 18 Jan 2013 17:55:35 +0100 |
parents | d1b4805124a1 |
children | 84a6e83157c2 |
rev | line source |
---|---|
258
aac82dee6091
Added a library for custom SàT Exceptions
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
1 #!/usr/bin/python |
aac82dee6091
Added a library for custom SàT Exceptions
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
2 # -*- coding: utf-8 -*- |
aac82dee6091
Added a library for custom SàT Exceptions
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
3 |
aac82dee6091
Added a library for custom SàT Exceptions
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
4 """ |
aac82dee6091
Added a library for custom SàT Exceptions
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
5 SàT Exceptions |
aac82dee6091
Added a library for custom SàT Exceptions
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
6 Copyright (C) 2011 Jérôme Poisson (goffi@goffi.org) |
aac82dee6091
Added a library for custom SàT Exceptions
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
7 |
aac82dee6091
Added a library for custom SàT Exceptions
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
8 This program is free software: you can redistribute it and/or modify |
480
2a072735e459
Licence modification: the full project is now under AGPL v3+ instead of GPL v3+
Goffi <goffi@goffi.org>
parents:
471
diff
changeset
|
9 it under the terms of the GNU Affero General Public License as published by |
258
aac82dee6091
Added a library for custom SàT Exceptions
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
10 the Free Software Foundation, either version 3 of the License, or |
aac82dee6091
Added a library for custom SàT Exceptions
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
11 (at your option) any later version. |
aac82dee6091
Added a library for custom SàT Exceptions
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
12 |
aac82dee6091
Added a library for custom SàT Exceptions
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
13 This program is distributed in the hope that it will be useful, |
aac82dee6091
Added a library for custom SàT Exceptions
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
14 but WITHOUT ANY WARRANTY; without even the implied warranty of |
aac82dee6091
Added a library for custom SàT Exceptions
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
480
2a072735e459
Licence modification: the full project is now under AGPL v3+ instead of GPL v3+
Goffi <goffi@goffi.org>
parents:
471
diff
changeset
|
16 GNU Affero General Public License for more details. |
258
aac82dee6091
Added a library for custom SàT Exceptions
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
17 |
480
2a072735e459
Licence modification: the full project is now under AGPL v3+ instead of GPL v3+
Goffi <goffi@goffi.org>
parents:
471
diff
changeset
|
18 You should have received a copy of the GNU Affero General Public License |
258
aac82dee6091
Added a library for custom SàT Exceptions
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
19 along with this program. If not, see <http://www.gnu.org/licenses/>. |
aac82dee6091
Added a library for custom SàT Exceptions
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
20 """ |
aac82dee6091
Added a library for custom SàT Exceptions
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
21 |
589
d1b4805124a1
Fix pep8 support in src/core.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
562
diff
changeset
|
22 |
258
aac82dee6091
Added a library for custom SàT Exceptions
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
23 class ProfileUnknownError(Exception): |
aac82dee6091
Added a library for custom SàT Exceptions
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
24 pass |
486
0d9908ac775e
core: entity cache misc data management + error moved to core.exceptions in memory
Goffi <goffi@goffi.org>
parents:
480
diff
changeset
|
25 |
589
d1b4805124a1
Fix pep8 support in src/core.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
562
diff
changeset
|
26 |
486
0d9908ac775e
core: entity cache misc data management + error moved to core.exceptions in memory
Goffi <goffi@goffi.org>
parents:
480
diff
changeset
|
27 class ProfileNotInCacheError(Exception): |
0d9908ac775e
core: entity cache misc data management + error moved to core.exceptions in memory
Goffi <goffi@goffi.org>
parents:
480
diff
changeset
|
28 pass |
0d9908ac775e
core: entity cache misc data management + error moved to core.exceptions in memory
Goffi <goffi@goffi.org>
parents:
480
diff
changeset
|
29 |
589
d1b4805124a1
Fix pep8 support in src/core.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
562
diff
changeset
|
30 |
559
bdcd8c6c4ed4
core: renamed badly named ConnectedProfileError
Goffi <goffi@goffi.org>
parents:
538
diff
changeset
|
31 class NotConnectedProfileError(Exception): |
486
0d9908ac775e
core: entity cache misc data management + error moved to core.exceptions in memory
Goffi <goffi@goffi.org>
parents:
480
diff
changeset
|
32 pass |
0d9908ac775e
core: entity cache misc data management + error moved to core.exceptions in memory
Goffi <goffi@goffi.org>
parents:
480
diff
changeset
|
33 |
589
d1b4805124a1
Fix pep8 support in src/core.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
562
diff
changeset
|
34 |
486
0d9908ac775e
core: entity cache misc data management + error moved to core.exceptions in memory
Goffi <goffi@goffi.org>
parents:
480
diff
changeset
|
35 class UnknownEntityError(Exception): |
0d9908ac775e
core: entity cache misc data management + error moved to core.exceptions in memory
Goffi <goffi@goffi.org>
parents:
480
diff
changeset
|
36 pass |
501
e9634d2e7b38
core, quick_frontend, primitivus, wix: Contacts List refactoring phase 1:
Goffi <goffi@goffi.org>
parents:
486
diff
changeset
|
37 |
589
d1b4805124a1
Fix pep8 support in src/core.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
562
diff
changeset
|
38 |
501
e9634d2e7b38
core, quick_frontend, primitivus, wix: Contacts List refactoring phase 1:
Goffi <goffi@goffi.org>
parents:
486
diff
changeset
|
39 class UnknownGroupError(Exception): |
e9634d2e7b38
core, quick_frontend, primitivus, wix: Contacts List refactoring phase 1:
Goffi <goffi@goffi.org>
parents:
486
diff
changeset
|
40 pass |
538
2c4016921403
core, frontends, bridgen plugins: fixed methods which were unproperly managing multi-profiles
Goffi <goffi@goffi.org>
parents:
501
diff
changeset
|
41 |
589
d1b4805124a1
Fix pep8 support in src/core.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
562
diff
changeset
|
42 |
538
2c4016921403
core, frontends, bridgen plugins: fixed methods which were unproperly managing multi-profiles
Goffi <goffi@goffi.org>
parents:
501
diff
changeset
|
43 class NotFound(Exception): |
2c4016921403
core, frontends, bridgen plugins: fixed methods which were unproperly managing multi-profiles
Goffi <goffi@goffi.org>
parents:
501
diff
changeset
|
44 pass |
562
0bb2e0d1c878
core, plugin XEP-0054: avatar upload:
Goffi <goffi@goffi.org>
parents:
559
diff
changeset
|
45 |
589
d1b4805124a1
Fix pep8 support in src/core.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
562
diff
changeset
|
46 |
562
0bb2e0d1c878
core, plugin XEP-0054: avatar upload:
Goffi <goffi@goffi.org>
parents:
559
diff
changeset
|
47 class DataError(Exception): |
0bb2e0d1c878
core, plugin XEP-0054: avatar upload:
Goffi <goffi@goffi.org>
parents:
559
diff
changeset
|
48 pass |