core (exceptions): added ClientTypeError to deal when a code should not be executed by a client or component profile.

This commit is contained in:
Goffi 2018-02-28 18:28:39 +01:00
commit 54e4d5d3a9

View file

@ -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