Method: Bosh::ThreadPool#raise_worker_exception

Defined in:
lib/common/thread_pool.rb

#raise_worker_exception(exception) ⇒ Object



88
89
90
91
92
93
94
95
96
97
# File 'lib/common/thread_pool.rb', line 88

def raise_worker_exception(exception)
  if exception.respond_to?(:backtrace)
    @logger.debug("Worker thread raised exception: #{exception} - #{exception.backtrace.join("\n")}")
  else
    @logger.debug("Worker thread raised exception: #{exception}")
  end
  @lock.synchronize do
    @boom = exception if @boom.nil?
  end
end