You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2010/12/07 16:05:50 UTC

svn commit: r1043079 - /incubator/deltacloud/trunk/server/lib/deltacloud/base_driver/base_driver.rb

Author: mfojtik
Date: Tue Dec  7 15:05:50 2010
New Revision: 1043079

URL: http://svn.apache.org/viewvc?rev=1043079&view=rev
Log:
Added warning for unhandled exception. This will show just 'visible'
message to developer, that he needs to 'catch' this exception and
display it as an XML error to client instead of throwing that exception
to system log.

Modified:
    incubator/deltacloud/trunk/server/lib/deltacloud/base_driver/base_driver.rb

Modified: incubator/deltacloud/trunk/server/lib/deltacloud/base_driver/base_driver.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/base_driver/base_driver.rb?rev=1043079&r1=1043078&r2=1043079&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/base_driver/base_driver.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/base_driver/base_driver.rb Tue Dec  7 15:05:50 2010
@@ -256,6 +256,9 @@ module Deltacloud
         catched_exceptions_list[:glob].each do |ex|
           raise Deltacloud::BackendError.new(502, e.class.to_s, e.message, e.backtrace) if e.class.name =~ ex
         end
+        puts "======= UNHANDLED EXCEPTION ============"
+        puts e.inspect
+        puts "========================================"
         raise e
       end
     end