Exception: ReFacebook::APIError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ APIError

Returns a new instance of APIError.



172
173
174
175
# File 'lib/refacebook.rb', line 172

def initialize(response)
  @error_code = response['error_code']
  @error_msg = response['error_msg']
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



170
171
172
# File 'lib/refacebook.rb', line 170

def error_code
  @error_code
end

#error_msgObject (readonly)

Returns the value of attribute error_msg.



170
171
172
# File 'lib/refacebook.rb', line 170

def error_msg
  @error_msg
end