Raised by Timeout#timeout when the block times out.

Methods
C
E
Attributes
[R] thread
Class Public methods
catch(*args)
# File lib/timeout.rb, line 29
def self.catch(*args)
  exc = new(*args)
  exc.instance_variable_set(:@thread, Thread.current)
  exc.freeze
  ::Kernel.catch(exc) {yield exc}
end
Instance Public methods
exception(*)
# File lib/timeout.rb, line 36
def exception(*)
  if self.thread == Thread.current
    bt = caller
    begin
      throw(self, bt)
    rescue ArgumentError => e
      raise unless e.message.start_with?("uncaught throw")
      raise Error, message, backtrace
    end
  end
  self
end