From 54e4d5d3a973c1093ea957405939e8b1166a87ae Mon Sep 17 00:00:00 2001 From: Goffi Date: Wed, 28 Feb 2018 18:28:39 +0100 Subject: [PATCH] core (exceptions): added ClientTypeError to deal when a code should not be executed by a client or component profile. --- src/core/exceptions.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/exceptions.py b/src/core/exceptions.py index 20f1abb9..16e97fab 100644 --- a/src/core/exceptions.py +++ b/src/core/exceptions.py @@ -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