Exception: Gemstash::WebError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/gemstash/http_client.rb

Overview

:nodoc:

Direct Known Subclasses

ConnectionError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code) ⇒ WebError

Returns a new instance of WebError.



12
13
14
15
# File 'lib/gemstash/http_client.rb', line 12

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



10
11
12
# File 'lib/gemstash/http_client.rb', line 10

def code
  @code
end