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



858
859
860
861
862
863
864
865
866
867
# File 'lib/phusion_passenger/utils.rb', line 858

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 #{$$}, thread #{Thread.current}):\n" <<
		"\tfrom " << backtrace.join("\n\tfrom ")
end