Exception: MessageQuickly::Api::FacebookApiException
- Inherits:
-
StandardError
- Object
- StandardError
- MessageQuickly::Api::FacebookApiException
- Defined in:
- lib/message_quickly/api/facebook_api_exception.rb
Direct Known Subclasses
NoMatchingUserException, NotPermittedException, SendMessageException
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#error_data ⇒ Object
readonly
Returns the value of attribute error_data.
-
#fbtrace_id ⇒ Object
readonly
Returns the value of attribute fbtrace_id.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ FacebookApiException
constructor
A new instance of FacebookApiException.
- #message ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ FacebookApiException
Returns a new instance of FacebookApiException.
7 8 9 10 11 12 13 |
# File 'lib/message_quickly/api/facebook_api_exception.rb', line 7 def initialize(params = {}) = params['message'] @code = params['code'] @error_data = params['error_data'] @fbtrace_id = params['fbtrace_id'] super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/message_quickly/api/facebook_api_exception.rb', line 5 def code @code end |
#error_data ⇒ Object (readonly)
Returns the value of attribute error_data.
5 6 7 |
# File 'lib/message_quickly/api/facebook_api_exception.rb', line 5 def error_data @error_data end |
#fbtrace_id ⇒ Object (readonly)
Returns the value of attribute fbtrace_id.
5 6 7 |
# File 'lib/message_quickly/api/facebook_api_exception.rb', line 5 def fbtrace_id @fbtrace_id end |
Instance Method Details
#message ⇒ Object
15 16 17 |
# File 'lib/message_quickly/api/facebook_api_exception.rb', line 15 def "#{@message}: #{@error_data}" end |