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.



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

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.



168
169
170
# File 'lib/refacebook.rb', line 168

def error_code
  @error_code
end

#error_msgObject (readonly)

Returns the value of attribute error_msg.



168
169
170
# File 'lib/refacebook.rb', line 168

def error_msg
  @error_msg
end