method

exception

v2_1_10 - Show latest stable - Class: Timeout::Error
exception(*)
public

No documentation available.

# 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