Exception: MiniFB::FaceBookError
- Inherits:
-
StandardError
- Object
- StandardError
- MiniFB::FaceBookError
- Defined in:
- lib/mini_fb.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(error_code, error_msg) ⇒ FaceBookError
constructor
Error that happens during a facebook call.
Constructor Details
#initialize(error_code, error_msg) ⇒ FaceBookError
Error that happens during a facebook call.
66 67 68 69 |
# File 'lib/mini_fb.rb', line 66 def initialize(error_code, error_msg) @code = error_code super("Facebook error #{error_code}: #{error_msg}") end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
64 65 66 |
# File 'lib/mini_fb.rb', line 64 def code @code end |