Exception: OpenTox::Error

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

Instance Attribute Summary

Attributes included from OpenToxError

#error_cause, #http_code, #uri

Instance Method Summary collapse

Methods included from OpenToxError

cut_backtrace, #encode_with, #short_backtrace, #to_turtle

Constructor Details

#initialize(code, message = nil, uri = nil, cause = nil) ⇒ Error

Returns a new instance of Error


84
85
86
87
# File 'lib/error.rb', line 84

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