class Exception

Public Instance Methods

patch_full_message() click to toggle source
# File lib/eco/api/common/version_patches/exception.rb, line 2
def patch_full_message
  begin
    msg = []
    tracing   = backtrace ? backtrace : []
    tracing   = (self.class == SystemStackError) ? tracing[1..30] : tracing[1..-1]
    tracing ||= []
    msg << "\n#{tracing.first} \n#{message} (#{self.class.to_s})"
    tracing.each_with_index {|bt, i| msg << "#{" "*8}#{i+1}: from #{bt}"}
    msg.join("\n")
  rescue Exception => e
    puts "Something is wrong with 'patch_full_message': #{e}"
  end
end