You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by ma...@apache.org on 2013/01/09 13:49:13 UTC

git commit: DTACLOUD-398 explicitely specify errors not otherwise caught by sinatra

Updated Branches:
  refs/heads/master bb1aee038 -> 43f9b2104


DTACLOUD-398 explicitely specify errors not otherwise caught by sinatra

TrackedAt: http://tracker.deltacloud.org/patch/861f8419fc52279efeb27cbf0aa50a3f1c1e5dbb


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/43f9b210
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/43f9b210
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/43f9b210

Branch: refs/heads/master
Commit: 43f9b210484b98e1c648e565c52bd2a800b850c6
Parents: bb1aee0
Author: Joe VLcek <jv...@redhat.com>
Authored: Wed Dec 19 14:43:42 2012 -0500
Committer: marios <ma...@redhat.com>
Committed: Wed Jan 9 14:26:18 2013 +0200

----------------------------------------------------------------------
 server/lib/deltacloud/collections/base.rb |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/43f9b210/server/lib/deltacloud/collections/base.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/collections/base.rb b/server/lib/deltacloud/collections/base.rb
index bc01eff..6562448 100644
--- a/server/lib/deltacloud/collections/base.rb
+++ b/server/lib/deltacloud/collections/base.rb
@@ -43,11 +43,18 @@ module Deltacloud::Collections
       report_error
     end
 
-    error Deltacloud::Exceptions::Conflict do
-      report_error
-    end
+    # error Deltacloud::Exceptions::ObjectNotFound do
+    #   report_error
+    # end
 
-    error Deltacloud::Exceptions::ValidationFailure do
+    error Deltacloud::Exceptions::AcceptedButNotCompletedError,
+          Deltacloud::Exceptions::ValidationFailure,
+          Deltacloud::Exceptions::AuthenticationFailure,
+          Deltacloud::Exceptions::ForbiddenError,
+          Deltacloud::Exceptions::ObjectNotFound,
+          Deltacloud::Exceptions::MethodNotAllowed,
+          Deltacloud::Exceptions::UnknownMediaTypeError,
+          Deltacloud::Exceptions::Conflict do
       report_error
     end