diff options
author | Christoph Helma <helma@in-silico.ch> | 2012-07-18 09:59:21 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2012-07-18 09:59:21 +0200 |
commit | 81f0924c654875a738b646ad951a28f906e0a97c (patch) | |
tree | 9a879d0c28bf126248a60c25248ea8ebcffc6f2f /lib/error.rb | |
parent | 76144341d800cec80cbb063b8c1acf6da19fad5d (diff) |
rest call error handling fixed
Diffstat (limited to 'lib/error.rb')
-rw-r--r-- | lib/error.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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 |