From b125e3b361b62f619f7c3b54e6abb6ecf0adc88d Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Sat, 8 Aug 2009 14:16:40 +0100 Subject: [PATCH] Basic exceptions used by confd Signed-off-by: Guido Trotter <ultrotter@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/errors.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lib/errors.py b/lib/errors.py index cdcc1c271..82018c33d 100644 --- a/lib/errors.py +++ b/lib/errors.py @@ -273,6 +273,24 @@ class JobQueueFull(JobQueueError): """ +class ConfdFatalError(GenericError): + """A fatal failure in Ganeti confd. + + Events that compromise the ability of confd to proceed further. + (for example: inability to load the config file) + + """ + + +class ConfdRequestError(GenericError): + """A request error in Ganeti confd. + + Events that should make confd abort the current request and proceed serving + different ones. + + """ + + # errors should be added above -- GitLab