Exception: Exception

Defined in:
lib/core/exception.rb

Overview

Exception overloads

Instance Method Summary collapse

Instance Method Details

#nice_message(padding = "") ⇒ Object

Gives us a nice_message for exceptions



6
7
8
# File 'lib/core/exception.rb', line 6

def nice_message(padding="")
  "#{padding}#{message}\n#{padding}" + backtrace.join("\n#{padding}")
end