# HG changeset patch # User Goffi # Date 1519838919 -3600 # Node ID 537a4a8075f82bbd94cf740b1bcc6128805f4f51 # Parent d1df08c79a5d7916cf58feb2f0a890323ef0da52 core (exceptions): added ClientTypeError to deal when a code should not be executed by a client or component profile. diff -r d1df08c79a5d -r 537a4a8075f8 src/core/exceptions.py --- a/src/core/exceptions.py Wed Feb 28 18:28:39 2018 +0100 +++ b/src/core/exceptions.py Wed Feb 28 18:28:39 2018 +0100 @@ -27,15 +27,11 @@ 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 @@ pass +class ClientTypeError(Exception): + """This code is not allowed for this type of client (i.e. component or not)""" + + class UnknownEntityError(Exception): pass