Exception: Lorkhan::Errors::HTTPError
- Defined in:
- lib/lorkhan/errors/http_error.rb
Direct Known Subclasses
Apple::BadCollapseId, Apple::BadDeviceToken, Apple::BadExpirationDate, Apple::BadMessageId, Apple::BadPath, Apple::BadPriority, Apple::BadTopic, Apple::DeviceTokenNotForTopic, Apple::DuplicateHeaders, Apple::ExpiredProviderToken, Apple::Forbidden, Apple::IdleTimeout, Apple::InternalServerError, Apple::InvalidProviderToken, Apple::MethodNotAllowed, Apple::MissingDeviceToken, Apple::MissingProviderToken, Apple::MissingTopic, Apple::PayloadEmpty, Apple::PayloadTooLarge, Apple::ServiceUnavailable, Apple::Shutdown, Apple::TooManyProviderTokenUpdates, Apple::TooManyRequests, Apple::TopicDisallowed, Apple::Unregistered
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(response) ⇒ HTTPError
constructor
A new instance of HTTPError.
Constructor Details
#initialize(response) ⇒ HTTPError
Returns a new instance of HTTPError.
6 7 8 9 10 |
# File 'lib/lorkhan/errors/http_error.rb', line 6 def initialize(response) super("http_error/#{response.status}") @response = response @status = response.status end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
4 5 6 |
# File 'lib/lorkhan/errors/http_error.rb', line 4 def response @response end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/lorkhan/errors/http_error.rb', line 4 def status @status end |