diff options
author | rautenberg <rautenberg@in-silico.ch> | 2013-03-28 12:47:55 +0100 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2013-03-28 12:47:55 +0100 |
commit | cf146574d83d72a66183f7d103ca1aa250d6e360 (patch) | |
tree | 52cc08142b0a853955da32373ce83fca0a4cfe97 /lib/error.rb | |
parent | 9b31acdf5241ebdf700ecc1d798ca6c181aa1b5d (diff) | |
parent | 4ba2cc9849473f97baf75195bb36c5057f1c58d4 (diff) |
Merge branch 'development' of github.com:opentox/opentox-client into developmentv2.1.-last
Diffstat (limited to 'lib/error.rb')
-rw-r--r-- | lib/error.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/error.rb b/lib/error.rb index 3dd2950..4fed343 100644 --- a/lib/error.rb +++ b/lib/error.rb @@ -1,7 +1,7 @@ require 'open4' # add additional fields to Exception class to format errors according to OT-API -class RuntimeError +module OpenToxError attr_accessor :http_code, :uri def initialize message, uri=nil super message @@ -46,6 +46,15 @@ class RuntimeError end +class RuntimeError + include OpenToxError +end + +# clutters log file with library errors +#class NoMethodError + #include OpenToxError +#end + module OpenTox class Error < RuntimeError |