Exception: Exception
- Defined in:
- lib/core/facets/exception/detail.rb
Direct Known Subclasses
EventHook, Lazy::DivergenceError, NackClass, TypeCastException
Instance Method Summary collapse
-
#detail ⇒ Object
Pretty string output of exception/error object useful for helpful debug messages.
Instance Method Details
#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
15 16 17 |
# File 'lib/core/facets/exception/detail.rb', line 15 def detail return %{#{message}\n #{backtrace.join("\n ")}\n LOGGED FROM: #{caller[0]}} end |