Exception: Timeout::Error
Overview
Raised by Timeout.timeout when the block times out.
Direct Known Subclasses
Net::OpenTimeout, Net::ReadTimeout, Net::WriteTimeout, Resolv::ResolvTimeout
Class Method Summary collapse
-
.handle_timeout(message) ⇒ Object
:nodoc:.
Class Method Details
.handle_timeout(message) ⇒ Object
:nodoc:
38 39 40 41 42 43 44 45 46 47 |
# File 'lib/timeout.rb', line 38 def self.handle_timeout() # :nodoc: exc = ExitException.new() begin yield exc rescue ExitException => e raise new() if exc.equal?(e) raise end end |