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