method
exception
v2_2_9 -
Show latest stable
- Class:
Timeout::Error
exception(*)public
No documentation available.
# File lib/timeout.rb, line 35
def exception(*)
# TODO: use Fiber.current to see if self can be thrown
if self.thread == Thread.current
bt = caller
begin
throw(self, bt)
rescue UncaughtThrowError
end
end
self
end