Method: Toolshed::Timeout::Error#exception

Defined in:
lib/toolshed/timeout.rb

#exceptionObject



82
83
84
85
86
87
88
89
90
91
92
# File 'lib/toolshed/timeout.rb', line 82

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