From 81f0924c654875a738b646ad951a28f906e0a97c Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Wed, 18 Jul 2012 09:59:21 +0200 Subject: rest call error handling fixed --- lib/error.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/error.rb') diff --git a/lib/error.rb b/lib/error.rb index 51451e7..3017c7f 100644 --- a/lib/error.rb +++ b/lib/error.rb @@ -33,7 +33,6 @@ class RuntimeError cut_index -= 1 cut_index = backtrace.size-1 if cut_index < 0 details = backtrace[0..cut_index].join("\n") - details += "REST paramenters:\n#{@request.args.inspect}" if @request writer << [subject, RDF::OT.errorCause, details] end rdf @@ -59,6 +58,7 @@ module OpenTox "LockedError" => 423, "InternalServerError" => 500, "NotImplementedError" => 501, + "RestCallError" => 501, "ServiceUnavailableError" => 503, "TimeOutError" => 504, }.each do |klass,code| @@ -76,6 +76,7 @@ module OpenTox end end +=begin # Errors received from RestClientWrapper calls class RestCallError < Error attr_accessor :request#, :response @@ -85,5 +86,6 @@ module OpenTox super 502, message, uri end end +=end end -- cgit v1.2.3