class Timeout::Error

Raised by Timeout.timeout when the block times out.

def self.handle_timeout(message) # :nodoc:

:nodoc:
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