Exception: TweetStream::ReconnectError
- Inherits:
-
StandardError
- Object
- StandardError
- TweetStream::ReconnectError
- Defined in:
- lib/tweetstream.rb
Instance Attribute Summary collapse
-
#retries ⇒ Object
Returns the value of attribute retries.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(timeout, retries) ⇒ ReconnectError
constructor
A new instance of ReconnectError.
Constructor Details
#initialize(timeout, retries) ⇒ ReconnectError
Returns a new instance of ReconnectError.
10 11 12 13 14 |
# File 'lib/tweetstream.rb', line 10 def initialize(timeout, retries) self.timeout = timeout self.retries = retries super("Failed to reconnect after #{retries} tries.") end |
Instance Attribute Details
#retries ⇒ Object
Returns the value of attribute retries.
9 10 11 |
# File 'lib/tweetstream.rb', line 9 def retries @retries end |
#timeout ⇒ Object
Returns the value of attribute timeout.
9 10 11 |
# File 'lib/tweetstream.rb', line 9 def timeout @timeout end |