Exception: SnapchatApi::RequestError
- Defined in:
- lib/snapchat_api/error.rb
Overview
Raised when API returns HTTP 200 but request_status is ERROR
Instance Attribute Summary collapse
-
#sub_errors ⇒ Object
readonly
Returns the value of attribute sub_errors.
Attributes inherited from Error
#body, #request_id, #status_code
Instance Method Summary collapse
-
#initialize(message = nil, status_code = nil, body = nil, request_id = nil, sub_errors = []) ⇒ RequestError
constructor
A new instance of RequestError.
Constructor Details
#initialize(message = nil, status_code = nil, body = nil, request_id = nil, sub_errors = []) ⇒ RequestError
Returns a new instance of RequestError.
29 30 31 32 |
# File 'lib/snapchat_api/error.rb', line 29 def initialize( = nil, status_code = nil, body = nil, request_id = nil, sub_errors = []) @sub_errors = sub_errors super(, status_code, body, request_id) end |
Instance Attribute Details
#sub_errors ⇒ Object (readonly)
Returns the value of attribute sub_errors.
27 28 29 |
# File 'lib/snapchat_api/error.rb', line 27 def sub_errors @sub_errors end |