Simplify LUXI exceptions
authorMichael Hanselmann <hansmi@google.com>
Wed, 2 Dec 2009 10:59:36 +0000 (11:59 +0100)
committerMichael Hanselmann <hansmi@google.com>
Fri, 22 Jan 2010 14:16:56 +0000 (15:16 +0100)
commit797506fc9fee5a68d6f54688fa8aaf2e9391b8ec
tree2526e0802bdd7f95e314a8c6d35731d4ebae32dd
parent24cd3744971108c997788ba35cb5fc02c7097d16
Simplify LUXI exceptions

Having only one exception hierarchy makes catching them simpler. Before
ProtocolError would derive directly from Exception, but with this patch
it'll also be in the hierarchy defined by the ganeti.errors module.
Separating encoding and decoding errors is not necessary at this point
as they're never handled separately, and merging them removes a few
lines from the code.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/cli.py
lib/luxi.py