diff options
author | jaypipes@gmail.com <> | 2010-07-21 14:35:39 -0400 |
---|---|---|
committer | jaypipes@gmail.com <> | 2010-07-21 14:35:39 -0400 |
commit | 302afc13da7a83dcdf8bde0d6370b675c9b14218 (patch) | |
tree | 6488f6ac3ec3e24568511f3bd548e212fb9e0287 /nova/exception.py | |
parent | d52925f1f3293a4ad1692bd1aab846c713f7c3de (diff) | |
download | nova-302afc13da7a83dcdf8bde0d6370b675c9b14218.tar.gz nova-302afc13da7a83dcdf8bde0d6370b675c9b14218.tar.xz nova-302afc13da7a83dcdf8bde0d6370b675c9b14218.zip |
Fixes up Bucket to throw proper NotFound and NotEmpty exceptions
in constructor and delete() method, and fixes up objectstore_unittest
to properly use assertRaises() to check for proper exceptions and
remove the assert_ calls.
Diffstat (limited to 'nova/exception.py')
-rw-r--r-- | nova/exception.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py index bda002d1e..2108123de 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -44,6 +44,9 @@ class Duplicate(Error): class NotAuthorized(Error): pass +class NotEmpty(Error): + pass + def wrap_exception(f): def _wrap(*args, **kw): try: |