Method: Exception#detail
- Defined in:
- lib/core/facets/exception/detail.rb
#detail ⇒ Object
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
14 15 16 17 18 19 20 |
# File 'lib/core/facets/exception/detail.rb', line 14 def detail if backtrace %{#{self.class.name}: #{}\n #{backtrace.join("\n ")}\n LOGGED FROM: #{caller[0]}} else %{#{self.class.name}: #{}\n LOGGED FROM: #{caller[0]}} end end |