From: Tobias Crawley <[email protected]>

This allows the errors to be caught by 'naked' rescue blocks, and allows
the AASM gem's error handling mechanism to properly handle BackendErrors,
since it explicitly rescues StandardError.
---
 client/lib/deltacloud.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/client/lib/deltacloud.rb b/client/lib/deltacloud.rb
index c632594..2c64e65 100644
--- a/client/lib/deltacloud.rb
+++ b/client/lib/deltacloud.rb
@@ -287,7 +287,7 @@ module DeltaCloud
 
     # Re-raise backend errors as on exception in client with message from
     # backend
-    class BackendError < Exception
+    class BackendError < StandardError
       def initialize(opts={})
         @message = opts[:message]
       end
-- 
1.7.3.2

Reply via email to