incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1043079 - /incubator/deltacloud/trunk/server/lib/deltacloud/base_driver/base_driver.rb
Date Tue, 07 Dec 2010 15:05:50 GMT
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



Mime
View raw message