Exception: Exception

Defined in:
lib/subelsky_power_tools/ext/exception.rb

Overview

Instance Method Summary collapse

Instance Method Details

#detailObject

Pretty string output of exception/error object useful for helpful debug messages.

Input: The Exception/StandardError object

Output: The pretty printed string

CREDIT: George Moschovitis



15
16
17
# File 'lib/subelsky_power_tools/ext/exception.rb', line 15

def detail
  return %{#{self.class.name}: #{message}\n#{backtrace.join("\n  ")}\n  LOGGED FROM: #{caller[0]}}
end