Sha256: b491c849f21fc49c8119928ad74c0aa864be300f7b1f9b560bc114d39421f75c

Contents?: true

Size: 507 Bytes

Versions: 3

Compression:

Stored size: 507 Bytes

Contents

module TweetStream
  class Terminated < ::StandardError; end
  class Error < ::StandardError; end
  class ConnectionError < TweetStream::Error; end
  # A ReconnectError is raised when the maximum number of retries has
  # failed to re-establish a connection.
  class ReconnectError < StandardError
    attr_accessor :timeout, :retries
    def initialize(timeout, retries)
      self.timeout = timeout
      self.retries = retries
      super("Failed to reconnect after #{retries} tries.")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tweetstream-2.0.1 lib/tweetstream/error.rb
tweetstream-2.0.0 lib/tweetstream/error.rb
tweetstream-1.1.5 lib/tweetstream/error.rb