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.



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

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



8
9
10
# File 'lib/gemstash/http_client.rb', line 8

def code
  @code
end