123456789_123456789_123456789_123456789_123456789_

Exception: Gem::Timeout::Error

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, RuntimeError
Instance Chain:
self, RuntimeError
Inherits: RuntimeError
  • Object
Defined in: lib/rubygems/vendor/timeout/lib/timeout.rb

Overview

Raised by timeout when the block times out.

Class Method Summary

Class Method Details

.handle_timeout(message)

This method is for internal use only.
[ GitHub ]

  
# File 'lib/rubygems/vendor/timeout/lib/timeout.rb', line 34

def self.handle_timeout(message) # :nodoc:
  exc = ExitException.new(message)

  begin
    yield exc
  rescue ExitException => e
    raise new(message) if exc.equal?(e)
    raise
  end
end