core (exceptions): added ClientTypeError to deal when a code should not be executed by a client or component profile.
This commit is contained in:
parent
a89b5f0957
commit
54e4d5d3a9
1 changed files with 5 additions and 5 deletions
|
|
@ -27,15 +27,11 @@ class ProfileNotInCacheError(Exception):
|
|||
|
||||
|
||||
class ProfileNotSetError(Exception):
|
||||
"""
|
||||
This error raises when no profile has been set (value @NONE@ is found, but it should have been replaced)
|
||||
"""
|
||||
pass
|
||||
"""This error raises when no profile has been set (value @NONE@ is found, but it should have been replaced)"""
|
||||
|
||||
|
||||
class ProfileConnected(Exception):
|
||||
"""This error is raised when trying to delete a connected profile."""
|
||||
pass
|
||||
|
||||
|
||||
class ProfileNotConnected(Exception):
|
||||
|
|
@ -46,6 +42,10 @@ class ProfileKeyUnknown(Exception):
|
|||
pass
|
||||
|
||||
|
||||
class ClientTypeError(Exception):
|
||||
"""This code is not allowed for this type of client (i.e. component or not)"""
|
||||
|
||||
|
||||
class UnknownEntityError(Exception):
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue