Exception: Exception

Defined in:
lib/eco/api/common/version_patches/exception.rb

Instance Method Summary collapse

Instance Method Details

#patch_full_messageObject



2
3
4
5
6
7
# File 'lib/eco/api/common/version_patches/exception.rb', line 2

def patch_full_message
  msg = []
  msg << "\n#{backtrace.first} \n#{message} (#{self.class.to_s})"
  backtrace[1..-1].each_with_index {|bt, i| msg << "#{" "*8}#{i+1}: from #{bt}"}
  msg.join("\n")
end