Raised by Timeout#timeout when the block times out.
Attributes
thread[R]
Public Class Methods
catch(*args)
# File timeout.rb, line 30defself.catch(*args)
exc = new(*args)
exc.instance_variable_set(:@thread, Thread.current)
::Kernel.catch(exc) {yieldexc}
end
Public Instance Methods
exception(*)
# File timeout.rb, line 36defexception(*)
# TODO: use Fiber.current to see if self can be thrownifself.thread==Thread.currentbt = callerbeginthrow(self, bt)
rescueUncaughtThrowErrorendendselfend