Exception: OpenTox::Error

Inherits:
RuntimeError show all
Includes:
OpenToxError
Defined in:
lib/error.rb

Instance Attribute Summary

Attributes included from OpenToxError

#cause, #http_code, #message

Instance Method Summary collapse

Methods included from OpenToxError

#cut_backtrace

Constructor Details

#initialize(code, message = nil) ⇒ Error

Returns a new instance of Error.



44
45
46
47
# File 'lib/error.rb', line 44

def initialize(code, message=nil)
  @http_code = code
  super message
end