# class Timeout::Error

Raised by `Timeout.timeout` when the block times out.

### Public Class Methods

handle_timeout(message) { |exc| ... } click to toggle source

    # File 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