Skip to content
Snippets Groups Projects
Commit df156277 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

errors: Add list of possible failure types


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 685d3b42
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,19 @@ ECODE_FAULT = "internal_error"
# environment error (e.g. node disk error)
ECODE_ENVIRON = "environment_error"
#: List of all failure types
ECODE_ALL = frozenset([
ECODE_RESOLVER,
ECODE_NORES,
ECODE_INVAL,
ECODE_STATE,
ECODE_NOENT,
ECODE_EXISTS,
ECODE_NOTUNIQUE,
ECODE_FAULT,
ECODE_ENVIRON,
])
class GenericError(Exception):
"""Base exception for Ganeti.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment