Exception: Exception
- Defined in:
- lib/eco/api/common/version_patches/exception.rb
Instance Method Summary collapse
Instance Method Details
#patch_full_message(trace_count: -1)) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/eco/api/common/version_patches/exception.rb', line 2 def (trace_count: -1) msg = [] tracing = backtrace || [] tracing = instance_of?(SystemStackError) ? tracing[1..30] : tracing[1..trace_count] tracing ||= [] msg << "\n#{tracing.first} \n#{} (#{self.class})" tracing.each_with_index {|bt, i| msg << "#{" "*8}#{i+1}: from #{bt}"} msg.join("\n") rescue StandardError => e puts "Something is wrong with 'patch_full_message': #{e}" end |