class Gem::Timeout::Error

Raised by Gem::Timeout.timeout when the block times out.

Public Class Methods

handle_timeout(message) { |exc| ... } click to toggle source
# File rubygems/vendor/timeout/lib/timeout.rb, line 37
def self.handle_timeout(message)
  exc = ExitException.new(message)

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