Mercurial > libervia-backend
comparison src/core/exceptions.py @ 2495:537a4a8075f8
core (exceptions): added ClientTypeError to deal when a code should not be executed by a client or component profile.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 28 Feb 2018 18:28:39 +0100 |
parents | c0577837680a |
children |
comparison
equal
deleted
inserted
replaced
2494:d1df08c79a5d | 2495:537a4a8075f8 |
---|---|
25 class ProfileNotInCacheError(Exception): | 25 class ProfileNotInCacheError(Exception): |
26 pass | 26 pass |
27 | 27 |
28 | 28 |
29 class ProfileNotSetError(Exception): | 29 class ProfileNotSetError(Exception): |
30 """ | 30 """This error raises when no profile has been set (value @NONE@ is found, but it should have been replaced)""" |
31 This error raises when no profile has been set (value @NONE@ is found, but it should have been replaced) | |
32 """ | |
33 pass | |
34 | 31 |
35 | 32 |
36 class ProfileConnected(Exception): | 33 class ProfileConnected(Exception): |
37 """This error is raised when trying to delete a connected profile.""" | 34 """This error is raised when trying to delete a connected profile.""" |
38 pass | |
39 | 35 |
40 | 36 |
41 class ProfileNotConnected(Exception): | 37 class ProfileNotConnected(Exception): |
42 pass | 38 pass |
43 | 39 |
44 | 40 |
45 class ProfileKeyUnknown(Exception): | 41 class ProfileKeyUnknown(Exception): |
46 pass | 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 | 47 |
48 | 48 |
49 class UnknownEntityError(Exception): | 49 class UnknownEntityError(Exception): |
50 pass | 50 pass |
51 | 51 |