Exception: ReFacebook::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- ReFacebook::APIError
- Defined in:
- lib/refacebook.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#error_msg ⇒ Object
readonly
Returns the value of attribute error_msg.
Instance Method Summary collapse
-
#initialize(response) ⇒ APIError
constructor
A new instance of APIError.
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_code ⇒ Object (readonly)
Returns the value of attribute error_code.
168 169 170 |
# File 'lib/refacebook.rb', line 168 def error_code @error_code end |
#error_msg ⇒ Object (readonly)
Returns the value of attribute error_msg.
168 169 170 |
# File 'lib/refacebook.rb', line 168 def error_msg @error_msg end |