Exception: RubyPi::TimeoutError

Inherits:
Error
  • Object
show all
Defined in:
lib/ruby_pi/errors.rb

Overview

Raised when an HTTP request times out before receiving a response.

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ TimeoutError

Returns a new instance of TimeoutError.

Parameters:

  • message (String) (defaults to: nil)

    human-readable error description



70
71
72
# File 'lib/ruby_pi/errors.rb', line 70

def initialize(message = nil)
  super(message || "Request timed out")
end