Exception: Twitch::ErrorGenerator
- Defined in:
- lib/twitch/error_generator.rb
Direct Known Subclasses
Twitch::Errors::AuthenticationMissingError, Twitch::Errors::BadRequestError, Twitch::Errors::ConflictError, Twitch::Errors::EntityNotFoundError, Twitch::Errors::ForbiddenError, Twitch::Errors::InternalError, Twitch::Errors::NotImplementedError, Twitch::Errors::ServiceUnavailableError, Twitch::Errors::TooManyRequestsError
Instance Attribute Summary collapse
-
#http_status_code ⇒ Object
readonly
Returns the value of attribute http_status_code.
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
-
#twitch_error_code ⇒ Object
readonly
Returns the value of attribute twitch_error_code.
-
#twitch_error_message ⇒ Object
readonly
Returns the value of attribute twitch_error_message.
Instance Method Summary collapse
-
#initialize(response_body, http_status_code) ⇒ ErrorGenerator
constructor
A new instance of ErrorGenerator.
Constructor Details
#initialize(response_body, http_status_code) ⇒ ErrorGenerator
Returns a new instance of ErrorGenerator.
8 9 10 11 12 13 |
# File 'lib/twitch/error_generator.rb', line 8 def initialize(response_body, http_status_code) @response_body = response_body @http_status_code = http_status_code set_twitch_error_values super() end |
Instance Attribute Details
#http_status_code ⇒ Object (readonly)
Returns the value of attribute http_status_code.
4 5 6 |
# File 'lib/twitch/error_generator.rb', line 4 def http_status_code @http_status_code end |
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
3 4 5 |
# File 'lib/twitch/error_generator.rb', line 3 def response_body @response_body end |
#twitch_error_code ⇒ Object (readonly)
Returns the value of attribute twitch_error_code.
5 6 7 |
# File 'lib/twitch/error_generator.rb', line 5 def twitch_error_code @twitch_error_code end |
#twitch_error_message ⇒ Object (readonly)
Returns the value of attribute twitch_error_message.
6 7 8 |
# File 'lib/twitch/error_generator.rb', line 6 def @twitch_error_message end |