diff options
author | Christoph Helma <helma@in-silico.ch> | 2012-07-12 16:38:03 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2012-07-12 16:38:03 +0200 |
commit | bf6834445feb6f93f0a20359462dbd1e7e89f4b8 (patch) | |
tree | 2f331f445d8390f7f3309e1689587ae3024c60f4 /lib/error.rb | |
parent | d8e72c6ff7ce2b147b6a11d233b80bbc8f1760d9 (diff) |
all opentox-client tests pass
Diffstat (limited to 'lib/error.rb')
-rw-r--r-- | lib/error.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/error.rb b/lib/error.rb index 64b0fb1..51451e7 100644 --- a/lib/error.rb +++ b/lib/error.rb @@ -10,7 +10,7 @@ class RuntimeError $logger.error "\n"+self.to_turtle end - # define to_ and self.from_ methods for various rdf formats + # define to_ methods for all RuntimeErrors and various rdf formats RDF_FORMATS.each do |format| send :define_method, "to_#{format}".to_sym do @@ -22,7 +22,7 @@ class RuntimeError subject = RDF::Node.new writer << [subject, RDF.type, RDF::OT.ErrorReport] writer << [subject, RDF::OT.actor, @uri.to_s] - writer << [subject, RDF::OT.message, @message.to_s] + writer << [subject, RDF::OT.message, message.to_s] writer << [subject, RDF::OT.statusCode, @http_code] writer << [subject, RDF::OT.errorCode, self.class.to_s] @@ -80,7 +80,6 @@ module OpenTox class RestCallError < Error attr_accessor :request#, :response def initialize message, request, uri - #def initialize request, response, message @request = request #@response = response super 502, message, uri |