Exception: Exception

Defined in:
lib/phusion_passenger/utils.rb

Overview

module PhusionPassenger

Instance Method Summary collapse

Instance Method Details

#backtrace_string(current_location = nil) ⇒ Object



495
496
497
498
499
500
501
502
503
504
# File 'lib/phusion_passenger/utils.rb', line 495

def backtrace_string(current_location = nil)
  if current_location.nil?
    location = nil
  else
    location = "in #{current_location} "
  end
  return "*** Exception #{self.class} #{location}" <<
    "(#{self}) (process #{$$}):\n" <<
    "\tfrom " << backtrace.join("\n\tfrom ")
end