Exception: Rubytter::APIError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, response = nil) ⇒ APIError

Returns a new instance of APIError.



16
17
18
19
# File 'lib/rubytter.rb', line 16

def initialize(msg, response = nil)
  super(msg)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



15
16
17
# File 'lib/rubytter.rb', line 15

def response
  @response
end